[Solved] Weird UserId Returned By Student Submission


Don’t not read the docs: retrieve_student_responses

Students are identified by the unique ID or email address of the user, as returned by the Google Admin SDK.

So there’s clearly no guarantee it will return the email..

If you read the docs you can find how to properly retrieve the email for a student id: retrieve_a_users_profile

To retrieve the abridged profile, including ID and name, for a user, call userProfiles.get() with the user’s ID, email, or “me” for the requesting user.

To retrieve the emailAddress field, you must include the classroom.profile.emails scope.

1

solved Weird UserId Returned By Student Submission