Robert Thorne
Robert Thorne

Reputation: 103

Microsoft Education - Class APIs - Get Just Students

We are working the Microsoft Education APIs within Microsoft Teams and we require to pull the students for a class.

It seems that Microsoft provides an endpoint to return the Members from a Class which returns both Students and Teachers, as well as an endpoint for just teachers, but there doesn't seem to be an endpoint for just Students.

We are getting around this by calling these two endpoints and then removing the Teachers from the Members list, but does anyone have a better solution to this?

It feels like a common requirement for the API, but something that has been missed.

Upvotes: 1

Views: 94

Answers (1)

GarethJ
GarethJ

Reputation: 6606

You solution with two calls and a logical subtraction is the correct one. Thanks for the feedback, but we don't have a plan to produce a GET students API at the present time.

Upvotes: 1

Related Questions