Expand my Community achievements bar.

How to fetch Users of a group, through Javascript Code

Avatar

Level 4

Hi Team

 

I want to know to which group the logged in user belongs to using javascript

 

Please advise.

 

Thanks 

2 Replies

Avatar

Community Advisor

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 



Arun Patidar