AnsweredAssumed Answered

enrollments End Point

Question asked by test on Apr 22, 2016
Latest reply on Apr 25, 2016 by Tyler Clair

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?

 

{"id":17452826,"user_id":3797794,"course_id":832406,"type":"StudentEnrollment","created_at":"2013-01-15T20:06:39Z","updated_at":"2016-04-11T13:38:19Z","associated_user_id":null,"start_at":null,"end_at":null,"course_section_id":889149,"root_account_id":97951,"limit_privileges_to_course_section":false,"enrollment_state":"active","role":"StudentEnrollment","role_id":2441,"last_activity_at":"2015-03-06T13:59:26Z","total_activity_time":5060,"sis_import_id":null,"grades":{"html_url":"https://evaluationkit.instructure.com/courses/832406/grades/3797794","current_score":null,"final_score":0,"current_grade":null,"final_grade":null},"sis_source_id":null,"sis_course_id":null,"course_integration_id":null,"sis_section_id":null,"section_integration_id":null,"html_url":"https://evaluationkit.instructure.com/courses/832406/users/3797794",

"user":{"id":3797794,"name":"Student 1","sortable_name":"1, Student","short_name":"Student 1","login_id":"student1@evaluationkit.com"}},

 

Thanks,

Matt.

Outcomes