Skip to main content
Manjunath_DJ
Level 2
Oct 16, 2015 2:26 AM UTC
Solved

How to get user's properties and user's group in AEM 5.6 using com.adobe.granite api

How to get user's properties and user's group in AEM 5.6 using com.adobe.granite api

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
Oct 16, 2015 2:26 AM UTC

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

smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 16, 2015 2:26 AM UTC

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
18Harry
Level 2
Oct 16, 2015 2:26 AM UTC

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
Sham_HC
Level 10
Oct 16, 2015 2:26 AM UTC

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