cancel
Showing results for 
Search instead for 
Did you mean: 

removePermission not works for ALL users/groups

louise
Champ in-the-making
Champ in-the-making
I would like to remove "Coordinator" permission for ALL users on a Space, but i've got unexpected result, see example and output below (Alfresco 4.0.d Community, default installed SOLR indexer):

Example JavaScript code:

var node = companyhome.childByNamePath("User Homes/louise");

permissions = node.getPermissions();
print("Before removePermission:");
print(permissions);

node.removePermission("Coordinator");

permissions = node.getPermissions();
print("After removePermission:");
print(permissions);

Output:

Before removePermission:
0 : ALLOWED;louise;All
1 : ALLOWED;ROLE_OWNER;All
2 : ALLOWED;abeecher;Coordinator

After removePermission:
0 : ALLOWED;louise;All
1 : ALLOWED;ROLE_OWNER;All
2 : ALLOWED;abeecher;Coordinator
1 REPLY 1

louise
Champ in-the-making
Champ in-the-making
Let see the workaround until we've received a reply: http://louise.hu/poet/?p=5922
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.