Returns a student of a course.

gc_courses_students_get(courseId, userId)

Arguments

courseId

Identifier of the course

userId

Identifier of the student to return

Details

This method returns the following error codes:

  • PERMISSION_DENIED if the requesting user is not permitted to viewstudents of this course or for access errors.

  • NOT_FOUND if no student of this course has the requested ID or if thecourse does not exist.

Authentication scopes used by this function are:

  • https://www.googleapis.com/auth/classroom.profile.emails

  • https://www.googleapis.com/auth/classroom.profile.photos

  • https://www.googleapis.com/auth/classroom.rosters

  • https://www.googleapis.com/auth/classroom.rosters.readonly

Set options(googleAuthR.scopes.selected = c("https://www.googleapis.com/auth/classroom.profile.emails", "https://www.googleapis.com/auth/classroom.profile.photos", "https://www.googleapis.com/auth/classroom.rosters", "https://www.googleapis.com/auth/classroom.rosters.readonly") Then run googleAuthR::gar_auth() to authenticate. See gar_auth for details.

See also