display name of users under specific role

I want to display name of users who are registered as employee role. If I logged in as manager instead of admin so I want to see name of employees working under me.  Kindly help.
1 answers

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.