Using the Query Builder API and Query Debugger tool in AEM is a great way to search through the JCR and return almost any data from your AEM system.

You can find more details on how to use Query Builder on Adobe’s web site at

Your local Query Builder tool can be found at http://localhost:4502/libs/cq/search/content/querydebug.html. Replace “http://localhost:4502” with your appropriate domain and port.

Here are some helpful queries I have used in the past.

Search for LDAP Users


Search for LDAP Groups