cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove read access permittted by group EVERYONE

wowilson
Champ in-the-making
Champ in-the-making
Apologises in advance if this question is rather simplistic or has been answered elsewhere. I am relatively new to Alfresco development and am still taking it all in. I have searched but not found a solution that works so far for my problem.

I am trying to create a simple scenario using the repository foundation services api to test access control.

I have used to the API to login as admin and create a folder "A" under company home. When i create a new user they are automatically added to the GROUP_EVERYONE authority. As a result every new user has read access to all content created under "A". I want to remove the everyone access so that i have to give specific permission to a user in order for them to view content in "A".

I have tried to delete the GROUP_EVERYONE authority and remove the users from the everyone group but nothing seems to work.

Does anyone know how this can be achieved using just the repository API?

Many thanks for your help with this.

Regards

Will
2 REPLIES 2

gyro_gearless
Champ in-the-making
Champ in-the-making
You have to remove the "inherit parent permissions" flag from your folder node - otherwise your folder gets the default permissions saying "read" for EVERYONE.
This can be done either with Explorer or programatically using PermissionService#setInheritParentPermissions() method - see http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/service/cmr/security/PermissionSe... for full details…

HTH
Gyro

wowilson
Champ in-the-making
Champ in-the-making
Gyro,

Thanks for your prompt reply. Spot on that solves my problem.

Really appreciate the help.

Regards

Will