Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

Can we modify XPATH query's path?


Level 5


userMgr.findAuthorizables method has a built-in XPATH query. Is it possible to modify the root node for search in it?


Query looks something like - 



If I want to search under /home/users/a, can I make this change?


3 Replies


Community Advisor

Hello @goyalkritika 


If you use case if to get specific users, you should probably make them members to a group. When you need this list, you can just get all members of this group.


I am doubtful you would be able to edit the query root

Aanchal Sikka



@goyalkritika Did you find the suggestions from Aanchal helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni


Employee Advisor

This is not possible. What do you want to achieve with this API call, for which you would need to tweak this query?