Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
This conversation has been locked due to inactivity. Please create a new post.
Hi,
I am trying to get the Group Name from the Logged in user.
i used some thing like this for getting logged in user
CQ.User.getCurrentUser()
Link to CQ widgets API: https://dev.day.com/docs/en/cq/current/widgets-api/
But I dont see any method to fetch Group of that User.
If any one have solution regarding this please share.
Thanks,
Solved! Go to Solution.
You can use the http://dev.day.com/docs/en/cq/current/javadoc/com/day/cq/security/Group.html object. Then you can call its isMember(Authorizable authorizable) method to see if the user belongs to the given group.
isMember(Authorizable authorizable)
To learn how to work with the com.day.cq.security APIs from JavaScript -- see:
http://scottsdigitalcommunity.blogspot.ca/2013/07/using-ajax-requests-to-display-adobe-cq.html
Hope this helps
View solution in original post
Views
Likes
Replies
Like