Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

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

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

3 Replies

Avatar

Level 10

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

Avatar

Level 2

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

Avatar

Correct answer by
Level 10

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