Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
Hi Team
I want to know to which group the logged in user belongs to using javascript
Please advise.
Thanks
Hi @Prashardan ,
You may have a look
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem6-5-how-to-get-user-det...
We may use as mentioned in above blog or hit below and extract from json response the data by using userid
http://localhost:4502/bin/security/authorizables.json?filter=admin
https://stackoverflow.com/questions/34285379/how-can-i-check-if-logged-in-user-is-admin-or-members-o...
Hi @Prashardan
You need to write a custom servlet and call from javascript to know the user group.
There is a OOTB servlet but that did not return groups, just return user info
http://localhost:4502/libs/cq/security/userinfo.json?cq_ck=1724417012162
Views
Likes
Replies
Like