Retrieving users in course with email does not work

Jump to solution
saelterman
Community Novice

I have the following (relative) URL to retrieve students from a course and include their email address. The student users are returned, but the email attribute is missing from the JSON. I may be using the include parameter incorrectly, but I can't think of another way to do it.

courses/sis_course_id:341466/users?enrollment_type=student&include=email&per_page=40

Thanks for any help.

Labels (1)
1 Solution
MattHanes
Community Champion

You were very close! It should be like this with square brackets after include:

courses/sis_course_id:341466/users?enrollment_type=student&include[]=email&per_page=40

View solution in original post