Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Experience Manager Champion Program are open!

Can we modify XPATH query's path?

Avatar

Level 5

Hi,

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 - 

/jcr:root/home//element(*)[@jcr:primaryType='rep:User']

 

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

 

3 Replies

Avatar

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

Avatar

Administrator

@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

Avatar

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?