I'm creating a tool to list all staff working in a domain. In my case a "staff" use is any non-student user. I see how to use ListUsers, but it doesn't indicate anything about users' roles. Can you recommend the most efficient process to go about it?
My current thinking is that I need to iterate over all users from a ListUsers command and lookup each user's role or rights, so my program can discern which users have rights associated with staff-ness.
If I'm on the right track, I'd appreciate a suggestion for the most efficient way to determine staff-ness for each user. Otherwise, please point out a better mechanism to get a staff & teacher list for a domain. Thanks!