As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
//FIND THE GROUPNAME OF THE CURRENT LOGGED ON USER var currentUserName = person.properties.userName; var currentPerson = people.getPerson(currentUserName); var groupNameCurrentUser = people.getContainerGroups(currentPerson);
var currentUsersGroups = people.getContainerGroups(person);
HeyI used the method mentioned in your comment and I'm getting below result.
Current groups::Node Type: {http://www.alfresco.org/model/content/1.0}authorityContainer, Node Aspects: [{http://www.alfresco.org/model/system/1.0}referenceable, {http://www.alfresco.org/model/system/1.0}localized]
and not showing the group user is in like GROUP_TEST and GROUP_ALFRESCO_ADMINISTRATORS