Skip to content

What would be the best way to get name, ID, and group for all students in only one section of a class? #590

Answered by bennettscience
ecmagnuson asked this question in Q&A
Discussion options

You must be logged in to vote

You can get the group information if you use the include kwarg in your sections approach (which is what I would do):

enrollments = section.get_enrollments(include='group_ids')

Any value from the Canvas REST API docs can get passed as a **kwarg to include more data.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ecmagnuson
Comment options

Answer selected by ecmagnuson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants