Expand my Community achievements bar.

How to access all ACL permissions info using Querybuilder

Avatar

Level 7
 
3 Replies

Avatar

Community Advisor

@akshaybhujbale IMO, that's not possible via JCR Query; mostly because the access control system used by Jackrabbit (by default) and AEM relies on inheritance. So the permissions a user has on a certain node is not expressed as a node or properties, but is computed out of inherited ACEs and ACEs directly attached to the node, from both groups (recursively) and the user itself.

So, you probably need to filter your query result via session.hasPermission() or session.checkPermission().

 

Hope this helps!

Thanks