Creates a teacher of a course.
gc_courses_teachers_create(Teacher, courseId)
Teacher | The gc_teacher object to pass to this method |
---|---|
courseId | Identifier of the course |
This method returns the following error codes:
PERMISSION_DENIED
if the requesting user is not permitted to createteachers in this course or for access errors.
NOT_FOUND
if the requested course ID does not exist.
FAILED_PRECONDITION
if the requested user's account is disabled,for the following request errors:
CourseMemberLimitReached
CourseNotModifiable
CourseTeacherLimitReached
UserGroupsMembershipLimitReached
ALREADY_EXISTS
if the user is already a teacher or student in thecourse.
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
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")
Then run googleAuthR::gar_auth()
to authenticate.
See gar_auth
for details.
Other Teacher functions:
gc_teacher()