Thanks for sharing the code! It really helped me in finding out how to get the grade for a specific assignment for a specific user. After the missing grades report that I needed to create, I need to work on a report that get the grades of specific students (who belong to an external group) who are scattered in different courses in Canvas.
Step 1: Get the list of users for that external group from our SIS
Step 2: Using the user e-mail, get the userid from Canvas
Step 3: Using the classname and term from SIS, get the courseid from Canvas
Step 4: Using the userid and courseid, use the 2 functions in Gerald's script to get the grades for the assignments for that student in that course
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.