cancel
Showing results for 
Search instead for 
Did you mean: 

Ownership on templated user spaces

smyers
Champ in-the-making
Champ in-the-making
I've currently got Alfresco doing it authentication against an external source, and it's using the UIDBasedHomeFolderProvider to create home directory structures based on a template. It's all going well, except it seems that the spaces created in a user's home space have no owner.

This makes sense, as this is exactly how it is in the template, but I was wondering if there was a simple way to make the spaces, copied from the template during the home directory creation, all be owned by the user for whom the home space was just created.

My goal is currently to have two folders in everyone's home space, "Public" and "Private". Public is set GROUP_EVERYONE/Contributor. Private inherits no permissions, and should be only viewable/writable by the user that owns the home space. Am I just going about solving this problem the wrong way?
2 REPLIES 2

andy
Champ on-the-rise
Champ on-the-rise
Hi

By default, the owner is the creator, if no owner has been set.

The home folder provider only lets you set permissions on the top level folder. A template would copy permissions over but I am not sure who would be set as the creator. I suspect the user has all permissions on the files created from the template but the files were not created/owned by them. Raise this as an enhancement.

The easiest way is create as set up in which the user home is hidden to all users and then invite ALL to a subdirectory in the template. It will not work the other way round as you have to disable permission inheritance, and the ods are the owner will be wrong if you assign owner permissions in the template.

Andy

smyers
Champ in-the-making
Champ in-the-making
I will raise this issue, thanks.

For now, I can just work around this and it'll be just fine.

Update:
Issue raised as AR-1504

And just for clarification, all folders have their creator listed as "System". The home folder itself has its owner set as the newly logged-in user, but non of the spaces created from the template have listed owners.