AnsweredAssumed Answered

Home folder provider

Question asked by passg1 on Feb 8, 2008
Hi,

I would like to define the new imported users home space to a folder based on the group each user belongs to. I think I need something close to the homeFolderProvider but using the group name instead of the uid.

[size=75]
    <bean name="userHomesHomeFolderProvider" class="org.alfresco.repo.security.person.UIDBasedHomeFolderProvider">
        <property name="serviceRegistry">
            <ref bean="ServiceRegistry" />
        </property>
        <property name="path">
           <value>/${spaces.company_home.childname}/GROUP_NAME}</value>
        </property>
        <property name="storeUrl">
           <value>${spaces.store}</value>
        </property>
        <property name="homeFolderManager">
            <ref bean="homeFolderManager" />
        </property>
        <property name="inheritsPermissionsOnCreate">
            <value>false</value>
        </property>
        <property name="ownerPemissionsToSetOnCreate">
            <set>
                <value>All</value>
            </set>
        </property>
        <property name="userPemissions">
            <set>
                <value>All</value>
            </set>
        </property>
    </bean>
[/size]

Each user belongs only to one group

Thanks in advance.

jorge.

Outcomes