cancel
Showing results for 
Search instead for 
Did you mean: 

Default UserHome for new user in share

julian
Champ in-the-making
Champ in-the-making
Hi,

I work on alfresco 4.2. I want to use alfresco share for a project.

My problem is that I want to change the default user home directory when we create a new user in share.
I have done this for alfresco (not share) by modifing the web-client-config.xml file:
<blockcode>
<default-home-space-path>/app:company_home/cm:HR/cm:users</default-home-space-path>
<initial-location>userhome</initial-location>
</blockcode>

So in alfresco (not share) when I create a user the default user home is created in /app:company_home/cm:HR/cm:users
and when a user is connecting to alfresco the first page is his directory: /app:company_home/cm:HR/cm:users/cm:myUser

So I want the same thing with alfresco share. How can I resolve this issue?

Thanks in advance,
Best regards,

Julian
1 REPLY 1

julian
Champ in-the-making
Champ in-the-making
I found the solution:
you have to change the authentication-context.xml and put:
<blockcode>
<bean name="userHomesHomeFolderProvider" parent="usernameHomeFolderProvider">
      <property name="rootPath">
         <value>/${spaces.company_home.childname}/cm:HR/cm:users</value>
      </property>
      <property name="storeUrl">
         <value>${spaces.store}</value>
      </property>
   </bean>
</blockcode>