How to get user's properties and user's group in AEM 5.6 using com.adobe.granite api | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

See this AEM community artilce that uses the org.apache.jackrabbit.api.security.user Java API:

http://helpx.adobe.com/experience-manager/using/developing-aem-osgi-bundles-jackrabbit.html

Hope this helps

3 replies

Sham_HC
Level 10
October 16, 2015

Adopt to userproperties & use the methods.Example at [1].  recheck the previous threads IIRC there was discussion around it. 

[1]  http://helpx.adobe.com/experience-manager/using/creating-custom-cq-commerce-providers.html

[2]    http://www.wemblog.com/2012/03/how-to-do-user-management-using-post.html

Translate
18Harry
Level 2
October 16, 2015

Hi Manjunath,

You can get Users information by utilizing the

org.apache.jackrabbit.api.security.user.Authorizable API . Use memberOf () to get the user's group/s and getProperty () to get the properties.

 

Reference : http://jackrabbit.apache.org/api/2.0/org/apache/jackrabbit/api/security/user/Authorizable.html

 

Regards
Harish

Translate
smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

See this AEM community artilce that uses the org.apache.jackrabbit.api.security.user Java API:

http://helpx.adobe.com/experience-manager/using/developing-aem-osgi-bundles-jackrabbit.html

Hope this helps

Translate