March 28, 2020
Estimated Post Reading Time ~

Get/Fetch/Read User and Group details from CRX-AEM repository

Using a query debug URL listing out the users and their group's names in a JSON format.

Query Builder Debugger tool link:
http://localhost:4502/libs/cq/search/content/querydebug.html

query in tool:
p.hits=selective
p.limit=-1
p.properties=rep:authorizableId rep:externalId
path=/home/users
type=rep:User
p.properties=jcr:path


User List with group name:
users list in aem:
http://localhost:4502/bin/querybuilder.json?property=jcr:primaryType&property.value=rep:User

groups list in aem:
http://localhost:4502/bin/querybuilder.json?property=jcr:primaryType&property.value=rep:Group

The output will be based on params
http://localhost:4502/bin/querybuilder.json?property=jcr:primaryType&property.value=rep:User



Other related links:
http://experience-aem.blogspot.com/2013/09/cq-users-groups-crx-rmi-sample.html


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.