Deletes a teacher of a course.

gc_courses_teachers_delete(courseId, userId)

Arguments

courseId

Identifier of the course

userId

Identifier of the teacher to delete

Details

This method returns the following error codes:

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

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

  • FAILED_PRECONDITION if the requested ID belongs to the primary teacherof this course.

Authentication scopes used by this function are:

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

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

See also