Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
var node = people.getGroup("GROUP_ALFRESCO_ADMINISTRATORS");
var members = people.getMembers(node);
print(members);
var user = people.getPerson("admin");
print(user);
var isMember = members.indexOf(user);
print(isMember);
Owner

aviriel commented Oct 17, 2017

0 : a1e64bb3-2d9b-4b08-b429-9482b72ce4ba (workspace://SpacesStore/a1e64bb3-2d9b-4b08-b429-9482b72ce4ba)
1 : 50ed90f9-21e2-4c74-8d6f-c1dc84ea3a3e (workspace://SpacesStore/50ed90f9-21e2-4c74-8d6f-c1dc84ea3a3e)
a1e64bb3-2d9b-4b08-b429-9482b72ce4ba (workspace://SpacesStore/a1e64bb3-2d9b-4b08-b429-9482b72ce4ba)
-1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment