Disabling Inherit Permission in Alfresco

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Active Member

Disabling Inherit Permission in Alfresco

Jump to solution

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 Solution

Accepted Solutions
Highlighted
Moderator
Moderator

Re: Disabling Inherit Permission in Alfresco

Jump to solution

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-C02, GAIQ)

View solution in original post

2 Replies
Highlighted
Moderator
Moderator

Re: Disabling Inherit Permission in Alfresco

Jump to solution

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-C02, GAIQ)

View solution in original post

Highlighted
Community Manager
Community Manager

Re: Disabling Inherit Permission in Alfresco

Jump to solution

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!