Need to do following changes into permissionDefinitions.xml” file.
1)Define one PermissionGroupTag as following
<permissionGroup name="CustomRole" expose="true" allowFullControl="false">
<includePermissionGroup permissionGroup="Editor" type="cm:cmobject" />
<includePermissionGroup permissionGroup="Contributor" type="cm:cmobject" />
</permissionGroup>
Name attributes you can set with the name that you want to give for your custom role.
Above Created CustomRole having permission of Editor and contribtor, same way you can add more or less.
2)Add below line in PermissionSet tag of type="cm:cmobject"
<permissionGroup name="CustomRole" allowFullControl="true" expose="true" />
3) Add below line in PermissionSet tag of type="cm:content"
<permissionGroup name="CustomRole" extends="true" expose="true" />
4) Add following properties into webclient.properties file of alfresco
Key -> The name you have given for permissionGroup (i.e. CustomRole)
Value -> Which you want to display in web-client of alfresco.
Above example shows custom role which includes both Editor & contributor permission.
You can have your own custom role by adding set of existing roles in new permission group, as shown above.
Hope this help.
Best Regards,
Hetal Patel