Roster a course section using the Google Classroom API

domain: classroom.google.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Obtain an OAuth 2.0 access token with the scope https://www.googleapis.com/auth/classroom.rosters
  2. List existing students with GET https://classroom.googleapis.com/v1/courses/<courseId>/students, paginating with nextPageToken
  3. Add a student by sending POST https://classroom.googleapis.com/v1/courses/<courseId>/students with a JSON body containing userId (the student's Google account email or numeric ID)
  4. Add a teacher with POST https://classroom.googleapis.com/v1/courses/<courseId>/teachers using the same body structure
  5. Remove a member with DELETE https://classroom.googleapis.com/v1/courses/<courseId>/students/<userId>

Known gotchas

Related routes

List students and guardians for a Google Classroom course using the Classroom roster and guardian APIs
classroom.googleapis.com · 6 steps · unrated
List and create courses via the Google Classroom API
education · 5 steps · unrated
Sync a Google Classroom course roster by listing and adding students and teachers
education · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans