Buzz API

How to list staff (ie- nonstudent) accounts for a domain

Follow
Matthew Marichiba

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!

  

Comments (2)

Sort by
Brad Marshall
  • Agilix team member

Matthew, hope you are doing well! I have a couple of questions about this. 

  • What would be executed with the returned list? 
  • Would you consider an observer (e.g., parent, counselor) a staff member because they don't have a student enrollment?

There is an upcoming feature that may help you in accomplishing your goals, and I'll be able to discuss it more (offline) or after this week's release. ;)

 

 

0 Comment actions Permalink
Matthew Marichiba
> What would be executed with the returned list?
 
We want to sync some user details over to Salesforce where staff (but not students) are stored as contacts. I'm just outputting the data in CSV format. So, I'm not using the results to "execute" anything per se.
 
> Would you consider an observer (e.g., parent, counselor) a staff member because they don't have a student enrollment?
 
For this particular project, I don't think that observer-ness has much bearing. For example, a parent observer should not be included, but a counselor *would* be included (based some signature of staff-ness in the user's rights/roles).
 
I'll keep an eye on the release notes this Thursday. Meanwhile, feel free to email me offline with a specific pointer: matthew.marichiba@productops.com 
Thanks for the help! 
0 Comment actions Permalink
Please sign in to leave a comment.