Celebrate Excellence in Education: Nominate Outstanding Educators by April 15!
Found this content helpful? Log in or sign up to leave a like!
Hi,
I have a question about enrollments end point (api/v1/courses/xxx/enrollments)
When getting list of enrollments for a course/course section, in the user section (highlighted below), the user email address is missing.
For us to get the user's email address, we need to make another call to the PROFILE end point.
Would it be possible to add user's primary email address to the user info so we save another call?
Thanks,
Matt.
Hi Matt,
If you use the users endpoint in courses that will allow you to include the email address for users, see https://canvas.instructure.com/doc/api/courses.html#method.courses.users. You would want to set the enrollment_type[] to student and add email to the include[] field. It doesn't allow granularity to run it on a particular section but the section information can be included by adding enrollments to the include field, so you could group or filter based on that.
Best,
Tyler Clair
To participate in the Instructure Community, you need to sign up or log in:
Sign In