Skip to main content
Level 4
Oct 18, 2023 8:39 AM UTC

Can we modify XPATH query's path?

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?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

aanchal-sikka
Community Advisor
Community Advisor
Oct 18, 2023 10:05 AM UTC

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

Translate
Aanchal Sikka
kautuk_sahni
Level 9
Oct 19, 2023 8:31 AM UTC

@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.

Translate
Kautuk Sahni
joerghoh
Adobe Employee
Adobe Employee
Oct 24, 2023 7:23 PM UTC

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

Translate