Expand my Community achievements bar.

Join expert-led, customer-led sessions on Adobe Experience Manager Assets on August 20th at our Skill Exchange.
SOLVED

Get User/Group having which permissions

Avatar

Level 4

Hi All, 

 

I need to get the list of Users and List of Groups which are available in AEM with the Permissions under all paths programatically.

 

How we can solution this.Any reference would be highly appreciated

 

Thanks in Advance

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Sb2512 
Refer
Solved: List of users, groups and permissions - Adobe Experience League Community - 182886
Managing Users | Adobe Experience Manager
http://jackrabbit.apache.org/api/2.18/org/apache/jackrabbit/api/security/user/UserManager.html 
Use the UserManager API from org.apache.jackrabbit.api.security.user to list users and groups.

  • Querying all paths can be expensive; consider limiting scope or running as a batch process.

  • You need sufficient permissions to read ACLs.

  • For better performance you might consider checking only paths relevant to your use case.

  • Use JCR API and Jackrabbit API carefully to avoid permission issues.

 

 



View solution in original post

2 Replies

Avatar

Level 4

Avatar

Correct answer by
Community Advisor

Hi @Sb2512 
Refer
Solved: List of users, groups and permissions - Adobe Experience League Community - 182886
Managing Users | Adobe Experience Manager
http://jackrabbit.apache.org/api/2.18/org/apache/jackrabbit/api/security/user/UserManager.html 
Use the UserManager API from org.apache.jackrabbit.api.security.user to list users and groups.

  • Querying all paths can be expensive; consider limiting scope or running as a batch process.

  • You need sufficient permissions to read ACLs.

  • For better performance you might consider checking only paths relevant to your use case.

  • Use JCR API and Jackrabbit API carefully to avoid permission issues.