cancel
Showing results for 
Search instead for 
Did you mean: 

setting group as 'all' roles of a space

scot84
Champ in-the-making
Champ in-the-making
Hi I'm tring to set a group as the "coordinator" or all roles of a space.
I have made a batch that create the space first and after set the permission to the group GROUP_NAME


NodeRef nodeRef = assoc.getChildRef();
                           
permissionService.setInheritParentPermissions(nodeRef, false);
     
permissionService.setPermission(nodeRef,GROUP_NAME,permissionService.getAllPermission(),true);

After when i try to login in alfresco with admin credentials, all is ok i see with "manage space users" that the space have the group with all roles enabled.
But when i try to login with the credentials of an user of the group GROUP_NAME I can't see the space.
Any suggestion ???
1 REPLY 1

abarisone
Star Contributor
Star Contributor
Hi,
you should consider that when you insert an authority of type GROUP, the name you use must be preceded by GROUP_
Using this convention it seems that in your case the real group name is NAME.

Regards,
Andrea