Anyone have ideas for how you could see which (people) groups in a course a student belongs to?
I don't see an API endpoint to do that directly, but perhaps you could get all the groups in the course and search each one for the student?
Jaap Stelpstra created a useful macro-enabled Excel workbook that uses the API to pull all the group information from a course into one area for easier viewing. You could then search for the student's name in Excel to quickly find all the groups they are in.
The workbook, and instructions on how to use it, can be found in this document created by Jaap. Automated report of group sets, groups and members in a course.
Retrieving data ...