Expand my Community achievements bar.

SOLVED

Retrieving AEM User - group membership information

Avatar

Former Community Member

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.

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

org.apache.jackrabbit.api.security.user

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

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

org.apache.jackrabbit.api.security.user