cancel
Showing results for 
Search instead for 
Did you mean: 

How to control the Document Visibility in Space for Users

srinivasan
Champ in-the-making
Champ in-the-making
Hi Developers,

I have a scenario, assume i have space called app:company_home/cm:space1/cm:space2.

In space2 i have 2 files, one is pdf and other is msword.

Now  i have two users user1 and user2 and i set the accessibilty to space1 space level.

My question,  is it possible to set that user1 can only see the pdf and user2 can only see the msword document through webclient?

If not is it possible to control the visibility through the custom code? If yes please provide sample code or suggestion to achieve this scenario.

Thanks.
6 REPLIES 6

gavinc
Champ in-the-making
Champ in-the-making
Yes, you can. Go into the details view for the document you want to restrict and choose "Manage Content Users" from the actions list.

You can then turn off permissions inheritance for the document (it gets them by default from it's parent space) and apply the permissions directly to the content.

srinivasan
Champ in-the-making
Champ in-the-making
thanks for your reply.

I am using Alfresco Webclient 1.3. In that i am not able to find the 'Manage Content Users' action from 'More Actions' Link. I can see the 'Manage Space Users' and 'Manage Content Rules'.


Please help me to find the 'Manage Content Users' action.

Thanks

gavinc
Champ in-the-making
Champ in-the-making
It sounds like you are viewing details of the space not the content.

Click the view details icon under the name of the content item you want to restrict. Under the Close button, in the Actions panel, you should see an item for "Manage Content Users".

srinivasan
Champ in-the-making
Champ in-the-making
Thanks Gavin.

Now if found the 'Manage Content User' link from content view details.

choon
Champ in-the-making
Champ in-the-making
Interesting.
Can this also be done for mime-types? For example if I want one sort of user to only see pdf files.

kevinr
Star Contributor
Star Contributor
This is not something you can do out-of-the-box, but you could write a custom evaluator class that checked the mimetype of the current node context and then configure that in to the appropriate actions.

Thanks,

Kevin