Hi Gouri,
You can do a retrieve from database for this. For example if you wish to select all users with userrole “Administrator”:
A tip: most of the time it is best not to design the user roles based on organisational hierarchy. These are different things.
I hope this helps.