cancel
Showing results for 
Search instead for 
Did you mean: 

Disabling Inherit Permission in Alfresco

mehtaneha747
Champ on-the-rise
Champ on-the-rise

Hi,

When I disable inherit permission from Share for a particular node, the default site manager permission is automatically applied to that. But when I disable inherit permission through permission service, it will disable the permission even for the site manager.

this.permissionService.setInheritParentPermissions(node,false);

This doesn't apply the site manager permission on the given node. But it should not work like that because site manager should have all the access on the site.

How can I get the site manager permission even if an inherit permission is disable through permission service?

Please guide me through this.

Thank you.

1 ACCEPTED ANSWER

abhinavmishra14
World-Class Innovator
World-Class Innovator

It is the default behavior on share ui. It defaults site manager RBAC as far as i know. 

When you are using java api, you need to set the permission to site manager and disable inheritance if this what you are trying to achieve.

https://docs.alfresco.com/6.0/references/dev-services-permission.html

http://dev.alfresco.com/resource/AlfrescoOne/5.0/PublicAPI/org/alfresco/service/cmr/security/Permiss...

https://github.com/Alfresco/alfresco-repository/blob/alfresco-repository-6.8/src/main/java/org/alfre...

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

View answer in original post

2 REPLIES 2

abhinavmishra14
World-Class Innovator
World-Class Innovator

It is the default behavior on share ui. It defaults site manager RBAC as far as i know. 

When you are using java api, you need to set the permission to site manager and disable inheritance if this what you are trying to achieve.

https://docs.alfresco.com/6.0/references/dev-services-permission.html

http://dev.alfresco.com/resource/AlfrescoOne/5.0/PublicAPI/org/alfresco/service/cmr/security/Permiss...

https://github.com/Alfresco/alfresco-repository/blob/alfresco-repository-6.8/src/main/java/org/alfre...

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

EddieMay
World-Class Innovator
World-Class Innovator

Hi @mehtaneha747 

Thank you for accepting the solution - helps other users to see what has worked.

Cheers,

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!