cancel
Showing results for 
Search instead for 
Did you mean: 

How to hide the default roles in alfresco share

tapan
Champ in-the-making
Champ in-the-making
Hello all

     I am trying to create new custom roles for alfresco share.
i.e custom collaborator,custom managers etc.

   i need to use these custom roles,when i invite the users for particular new site in share,
at the moment i need to hide the default/existing roles of alfresco share already provided,and show only the new roles created.

and also want to know how to assign read,write.. permissions to the new roles(r,w,x).

Thanks
tapan
2 REPLIES 2

whispering
Champ in-the-making
Champ in-the-making
Hi

I followed this link to create custom permissions.

http://wiki.alfresco.com/wiki/Custom_Permissions_in_Share

You can probably play with the code to hide the default permissions

kirit
Champ on-the-rise
Champ on-the-rise
Yes, Above link will help anyone to create a new Roles.

To assign low level permissions for a custom role:
Here are the available low-level permission groups
      <permissionGroup name="ReadProperties" expose="true" allowFullControl="false" />  
      <permissionGroup name="ReadChildren" expose="true" allowFullControl="false" /> 
      <permissionGroup name="WriteProperties" expose="true" allowFullControl="false" /> 
      <permissionGroup name="ReadContent" expose="false" allowFullControl="false" /> 
      <permissionGroup name="WriteContent" expose="false" allowFullControl="false" /> 
      <permissionGroup name="ExecuteContent" expose="false" allowFullControl="false" /> 
      <permissionGroup name="DeleteNode" expose="true" allowFullControl="false" /> 
      <permissionGroup name="DeleteChildren" expose="true" allowFullControl="false" /> 
      <permissionGroup name="CreateChildren" expose="true" allowFullControl="false" /> 
      <permissionGroup name="LinkChildren" expose="true" allowFullControl="false" /> 
      <permissionGroup name="DeleteAssociations" expose="true" allowFullControl="false" /> 
      <permissionGroup name="ReadAssociations" expose="true" allowFullControl="false" /> 
      <permissionGroup name="CreateAssociations" expose="true" allowFullControl="false" /> 
      <permissionGroup name="ReadPermissions" expose="true" allowFullControl="false" /> 
      <permissionGroup name="ChangePermissions" expose="true" allowFullControl="false" /> 
      <permissionGroup name="Flatten" expose="true" allowFullControl="false" /> 

One have to use these groups in new role e.g

<permissionGroup name="My-Custome-Role" allowFullControl="false" expose="true">
   <includePermissionGroup permissionGroup="[b]Consumer[/b]" type="cm:cmobject" />
   <includePermissionGroup permissionGroup="[b]ReadPermissions[/b]" type="sys:base" />
   <includePermissionGroup permissionGroup="[b]AddChildren[/b]" type="sys:base" />
   <includePermissionGroup permissionGroup="[b]Write[/b]" type="sys:base" />
   …
   …
</permissionGroup

To hide the out of the box available Roles:
You can comment/remove them from the model file. But doing this will not display OOTB Roles anywhere in the system.