List students and guardians for a Google Classroom course using the Classroom roster and guardian APIs

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

Steps

  1. Authenticate with OAuth 2.0 scopes for https://www.googleapis.com/auth/classroom.rosters.readonly and https://www.googleapis.com/auth/classroom.guardianlinks.students.readonly
  2. GET /v1/courses/:courseId/students to retrieve the StudentSubmission list; paginate using nextPageToken until exhausted
  3. For each student, extract the userId to use as the studentId in subsequent guardian lookups
  4. GET /v1/userProfiles/:studentId/guardians to retrieve guardian invitation and acceptance records for each student
  5. Filter guardians by invitedEmailAddress and the state field (COMPLETE for accepted, PENDING for invited but not yet accepted)
  6. Aggregate the student-to-guardian mapping and store it for notification or reporting workflows

Known gotchas

Related routes

Sync a Google Classroom course roster by listing and adding students and teachers
education · 5 steps · unrated
Roster a course section using the Google Classroom API
classroom.google.com · 5 steps · unrated
List and create courses via the Google Classroom API
education · 5 steps · unrated

Give your agent this knowledge — and 15,600+ 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