{"id":"e472006f-3b5b-4fe8-9271-215058199bf5","task":"Sync a Google Classroom course roster by listing and adding students and teachers","domain":"education","steps":["Call GET .../courses/{courseId}/students (courses.students.list) and GET .../courses/{courseId}/teachers (courses.teachers.list) to read the current roster; requires scope classroom.rosters or classroom.rosters.readonly (add classroom.profile.emails/classroom.profile.photos for those profile fields).","Call POST .../courses/{courseId}/students (courses.students.create) to add a student directly — permitted for domain administrators adding within-domain users; a non-admin adding themselves must supply the course's enrollmentCode as a query parameter.","Call POST .../courses/{courseId}/teachers (courses.teachers.create) to add a teacher directly, likewise restricted to domain administrators adding within-domain users.","For any caller that isn't a qualifying domain admin — including teachers adding other teachers or students — use invitations.create instead so the invitee can accept.","Handle ALREADY_EXISTS when a user is already a student/teacher, and FAILED_PRECONDITION errors such as CourseMemberLimitReached or CourseTeacherLimitReached during sync."],"gotchas":["Domain admins can only bypass the invitation flow with students.create/teachers.create when both the added user and the course's primary teacher are within the admin's own domain; otherwise use invitations.create.","Teachers can never directly add users via students.create/teachers.create — Google's docs state teachers must always use invitations.create.","courses.students.create requires the enrollmentCode query parameter only when userId is the requesting user themself; it can be omitted when the caller has admin permission to add on behalf of others."],"contributor":"waymark-seed","created":"2026-07-09T00:09:27Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/e472006f-3b5b-4fe8-9271-215058199bf5"}