Retrieving AEM User - group membership information | Community
Skip to main content
October 16, 2015
Solved

Retrieving AEM User - group membership information

  • October 16, 2015
  • 1 reply
  • 919 views

Hi,

I am trying to retrieve mapping between user - group information.

I tried to get via http://<hostname>:<port_no>/home/groups/<group_name.json>. This displays data from rep:members in uuid format and not as user name.

rep:members: [
"0e41c69f-0203-3b19-bad2-37aba79267d6",
"2b500cd3-685d-3937-9cb2-e1a173868a7d",
"27da110f-516f-3c62-bd93-6da2ebdee44e",
"8cc1ac70-27ff-382d-b93b-8444ae623692",
"f19c2306-bd86-33c2-8084-b405f58e9e5b"
]

Is there a way to retrieve <group_name> : <user_names_member_of_group> format either in JSON / txt or even through a query? 

Appreciate any kind of help / input to sort this out. Thanks in advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

You can use Jackrabbit APIs located in this package to get Group information:

org.apache.jackrabbit.api.security.user

1 reply

smacdonald2008
smacdonald2008Accepted solution
New Participant
October 16, 2015

You can use Jackrabbit APIs located in this package to get Group information:

org.apache.jackrabbit.api.security.user