Solved! Go to Solution.
Views
Replies
Total Likes
As far as my understanding there is no OOTB API which fetches all users/groups data together at one go. You need to implement it following https://jackrabbit.apache.org/api/2.12/org/apache/jackrabbit/api/security/user/User.html
I can see results for both AEM On-Premise as well as AEMaaCS while hitting http://localhost:4502/api.json
{"links":[{"rel":["self"],"href":"http://localhost:4502/api.json"},{"rel":["assets"],"href":"http://localhost:4502/api/assets.json"},{"rel":["content"],"href":"http://localhost:4502/api/content.json"}],"class":["core/services"],"properties":{"name":"api"}}
Regards,
Santosh
Thanks
Do you know api for user management in aem.
Rest api endpoint for getting user/groups data from AEM.
Try this http://<hostname>:<port_no>/home/groups/<group_name.json>
{"jcr:primaryType":"rep:User","jcr:mixinTypes":["rep:AccessControllable"],"jcr:createdBy":"","rep:password":"{SHA-256}f5868050fef20f63-1000-97132f406863f493779995e58354a0422e76b6cea9f46f59a57f00ce768cb3c1","jcr:created":"Fri Jun 10 2022 00:31:33 GMT-0400","rep:principalName":"admin","jcr:uuid":"21232f29-7a57-35a7-8389-4a0e4a801fc3","rep:authorizableId":"admin"}
OR
If you need full details check this
http://localhost:4502/bin/security/authorizables.json?filter=username&_charset_=utf-8
{"authorizables":[{"familyName":"Administrator","familyName_xss":"Administrator","jcr:created":"2022-06-10T00:31:33.829-04:00","jcr:createdBy":"","principal":"admin","memberOf":[{"id":"everyone","name":"everyone","name_xss":"everyone","home":"/home/groups/e/everyone"}],"memberOfTotal":1,"rep:userId":"admin","sudoers":[],"sudoersTotal":0,"thumbnail":"","modification":{},"replication":{"numQueued":0},"type":"user","id":"admin","id_xss":"admin","name":"Administrator","name_xss":"Administrator","home":"/home/users/P/PvdMnY8O7C-gGlOQngio"}],"results":-1}
Hi @SantoshSai
Thanks
but through this api I am not getting all users and groups present in aem.
That api I am looking for.
As far as my understanding there is no OOTB API which fetches all users/groups data together at one go. You need to implement it following https://jackrabbit.apache.org/api/2.12/org/apache/jackrabbit/api/security/user/User.html
Ok Thanks
Views
Likes
Replies