Create a custom admin role

cancel
Showing results for 
Search instead for 
Did you mean: 
hiten_rastogi1
Established Member

Create a custom admin role

Hi,

I have been looking into users roles and permission documentation on Alfresco to wrap my head around a task that I have been assigned but I am not yet able to figure out how to do it.

My task involves around a custom admin role that has all the working of admin but document type node update, create, delete and folder type node create and delete.

Any guidance here will be appreciated.

Thanks

Hiten Rastogi

1 Reply
abhinavmishra14
Advanced

Re: Create a custom admin role

You can create custom role and setup appropriate permission group for your task, where you can allow read/write/delete. Look at the permissionDefinition.xml to start with.

The below given permissionGroup is configured in a permission set on type cm:cmobject. You can create your own permissionGroup in same way. 

<permissionSet type="cm:cmobject" expose="selected">


<permissionGroup name="RecordAdministrator" allowFullControl="false" expose="false">
<includePermissionGroup type="sys:base" permissionGroup="ReadProperties"/>
<includePermissionGroup type="sys:base" permissionGroup="ReadChildren"/>
<includePermissionGroup type="sys:base" permissionGroup="WriteProperties"/>
<includePermissionGroup type="sys:base" permissionGroup="ReadContent"/>
<includePermissionGroup type="sys:base" permissionGroup="DeleteChildren"/>
<includePermissionGroup type="sys:base" permissionGroup="CreateChildren"/>
<includePermissionGroup type="sys:base" permissionGroup="LinkChildren"/>
<includePermissionGroup type="sys:base" permissionGroup="DeleteAssociations"/>
<includePermissionGroup type="sys:base" permissionGroup="CreateAssociations"/>
</permissionGroup>

</permissionSet>

See full xml file here: https://github.com/Alfresco/alfresco-repository/blob/af2e069b2eabcd5433cee39d83ec06bad6fc69a0/src/ma...

Refer here: 

https://docs.alfresco.com/5.2/references/dev-extension-points-permissions.html 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)