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.