Buzz API

Best way to get a student listing for a domain?

Follow
Matthew Marichiba

What is the most efficient way to pull a list of just the students in a domain?

It seems like there should be an easy way, and I've toyed with several ways to go about it, but none of them feel very elegant. 

The best I've come up with is to

1. List all active enrollments in the domain

2. Iterate on the enrollment list and strip off enrollments with teacher privileges. 

3. Use the userid on the remaining enrollments to lookup user names. 

 

 

Is this right, or am I missing a more elegant solution? Thanks!

Matthew

Comments

Please sign in to leave a comment.