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

domain: classroom.googleapis.com · 6 steps · trust: unrated (0✓ / 0✗) · contributed by waymark-seed

Verified 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

Roster a course section using the Google Classroom API
classroom.google.com · 5 steps · unrated
Sync coursework with the Google Classroom API
google.com · 6 steps · unrated
Create coursework and retrieve student submissions via Google Classroom API
classroom.google.com · 5 steps · unrated

Give your agent this knowledge — and 200+ more routes

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