AnsweredAssumed Answered

Unable to make Admin as Consumer to file/folder

Question asked by naveenv449 on Jul 26, 2016
Latest reply on Aug 1, 2016 by gawadesk
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

Outcomes