AnsweredAssumed Answered

How do I find what group(s) a user is associated with?  Inconsistent API...

Question asked by David Morton on Jun 26, 2018
Latest reply on Jun 27, 2018 by David Morton

I need to determine what group(s) a user is associated with. 

 

 I found the variable substitution link:  <!-- - Canvas LMS REST API Documentation which has:

 

com.instructure.Course.groupIds

returns the Canvas ids of all active groups in the current course.

Availability: when launched in a course
Launch Parameter: com_instructure_course_groupids

23,24,...

Canvas.group.contextIds

returns the context ids for the groups the user belongs to in the course.

Availability: always

1c16f0de65a080803785ecb3097da99872616f0d,d4d8d6ae1611e2c7581ce1b2f5c58019d928b79d,...

 

 

These appear to not be the same type of thing!   One would think the second would be a subset of the first!   How can I associate these?  More importantly, how can I find the "Canvas id of the group the user belongs to in the course".

Outcomes