cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to make Admin as Consumer to file/folder

naveenv449
Confirmed Champ
Confirmed Champ
Hello,
I am trying to make Admin as Consumer for a particular node. But could not make it.
Is it possible to make so? If not how do I achieve such req.

My requirement is to have 2 custom doclib actions, where on selecting one action, it should make all users as consumers including admin and vice versa for the second action.

I have implemented below code:
this.serviceRegistry.getPermissionService().setPermission(docNodeRef, "GROUP_EVERYONE", SiteModel.SITE_CONSUMER, true);
this.serviceRegistry.getPermissionService().setPermission(docNodeRef, "GROUP_ALFRESCO_ADMINISTRATORS", SiteModel.SITE_CONSUMER, true);

This works well with all other users except Admins.

Is there any possible way to do this?


Thanks,
Naveen
1 REPLY 1

gawadesk
Star Contributor
Star Contributor
Hi Naveen,

All the users belongs to ALFRESCO_ADMINISTRATORS group will have admin rights on entire repository and they will have all access and permission. What is need of making them consumer ?

Thanks,
Krishna