Canvas LMS REST API: get groups for user_id
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2022
02:46 AM
Is there a way to get all groups for a user, with their user_id?
The api has /api/v1/users/self/groups endpoint to get your own groups. Is there a similar way to get other user's groups using their user id?
In the quiz statistics endpoint, you get a list of user ids, we want to filter the responses on group, so see how each group responded. That way we need to find which group each of the users belongs to.
Any suggestions on how to do this?
Solved! Go to Solution.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2022
02:59 PM
Hello @theaht123
Glad to help with this. For checking with groups you should be able to follow the steps here https://canvas.instructure.com/doc/api/groups.html#method.groups.users to pull specific groups
Regards,
Ian