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