cancel
Showing results for 
Search instead for 
Did you mean: 

Disabling 'User Home' deletion

gvandyk
Champ in-the-making
Champ in-the-making
Hi

Is there an easy way of preventing users from deleting their "User Home" space? We have an installation where Alfresco is synced with Active Directory and the Home spaces are created automatically. Some of the users accidently removes their home spaces, this again causes login failures within the system.

We only want to prevent users from deleting their specific home spaces.

Gerrit
1 REPLY 1

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hi,

One thing you could do is set "Collaborator" permission to the user when the home folder is created. Your synchronization should be using either existing homefolderprovider or a custom one.

Here is an example how you could do with personalHomeFolderProvider.  Instead of All for "ownerPemissionsToSetOnCreate" you could set collaborator.

This way users cannot delete their home folder. They will have all permissions and whatever they create/add in their home folder and any other folder that they have full permission.

<bean name="personalHomeFolderProvider" class="org.alfresco.repo.security.person.UIDBasedHomeFolderProvider">
        <property name="serviceRegistry">
          <ref bean="ServiceRegistry" />
      </property>
        <property name="path">
           <value>/${spaces.company_home.childname}</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>

Regards,
Shagul