> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up Google Classroom in Metorial for AI agents
URL: https://metorial.com/docs/integrations/google-classroom
Last updated: 2026-11-24

Share Google Classroom with your team in Claude, ChatGPT and Cursor through Metorial: OAuth sign-in, 19 tools (5 read-only).

---

To give your team Google Classroom in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Google Classroom integration in a Metorial portal, and each person signs in to Google Classroom with their own account. Agents can manage courses, rosters, and assignments in Google Classroom. The integration has 19 tools, 5 read-only, 12 write and 2 destructive, plus 4 triggers.

**What you will learn**

- How an admin shares Google Classroom in a portal and how each person connects
- The 26 OAuth scopes Google Classroom can request, and what each one allows
- How to keep the 5 read-only tools and reject the other 14

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An account with Google Classroom for each person who connects
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in method

| Method | Type | What a person provides |
| --- | --- | --- |
| **Google OAuth** | OAuth | Signs in to Google Classroom |

### Google OAuth

People sign in to Google Classroom and approve the scopes you allow. The integration can request:

| Scope | Name | What it allows |
| --- | --- | --- |
| `https://www.googleapis.com/auth/classroom.courses` | Manage Courses | Create, edit, and delete classes |
| `https://www.googleapis.com/auth/classroom.courses.readonly` | View Courses | View classes |
| `https://www.googleapis.com/auth/classroom.rosters` | Manage Rosters | Manage class rosters |
| `https://www.googleapis.com/auth/classroom.rosters.readonly` | View Rosters | View class rosters |
| `https://www.googleapis.com/auth/classroom.coursework.me` | Manage Own Coursework | Manage own coursework and grades |
| `https://www.googleapis.com/auth/classroom.coursework.me.readonly` | View Own Coursework | View own coursework and grades |
| `https://www.googleapis.com/auth/classroom.coursework.students` | Manage Student Coursework | Manage coursework and grades for students in classes you teach |
| `https://www.googleapis.com/auth/classroom.coursework.students.readonly` | View Student Coursework | View coursework and grades for students in classes you teach |
| `https://www.googleapis.com/auth/classroom.courseworkmaterials` | Manage Coursework Materials | Manage classwork materials |
| `https://www.googleapis.com/auth/classroom.courseworkmaterials.readonly` | View Coursework Materials | View classwork materials |
| `https://www.googleapis.com/auth/classroom.announcements` | Manage Announcements | Manage announcements |
| `https://www.googleapis.com/auth/classroom.announcements.readonly` | View Announcements | View announcements |
| `https://www.googleapis.com/auth/classroom.topics` | Manage Topics | Manage topics |
| `https://www.googleapis.com/auth/classroom.topics.readonly` | View Topics | View topics |
| `https://www.googleapis.com/auth/classroom.guardianlinks.students` | Manage Guardians | Manage guardians for students |
| `https://www.googleapis.com/auth/classroom.guardianlinks.students.readonly` | View Guardians | View guardians for students |
| `https://www.googleapis.com/auth/classroom.guardianlinks.me.readonly` | View Own Guardians | View own guardians |
| `https://www.googleapis.com/auth/classroom.profile.emails` | View Profile Emails | View email addresses of people in classes |
| `https://www.googleapis.com/auth/classroom.profile.photos` | View Profile Photos | View profile photos of people in classes |
| `https://www.googleapis.com/auth/classroom.push-notifications` | Push Notifications | Receive notifications about Classroom data changes |
| `https://www.googleapis.com/auth/classroom.addons.teacher` | Manage Add-ons (Teacher) | Manage add-on attachments as a teacher |
| `https://www.googleapis.com/auth/classroom.addons.student` | View Add-ons (Student) | View/update add-on attachments as a student |
| `https://www.googleapis.com/auth/classroom.student-submissions.me.readonly` | View Own Submissions | View own submissions and grades |
| `https://www.googleapis.com/auth/classroom.student-submissions.students.readonly` | View Student Submissions | View student submissions in classes you teach |
| `https://www.googleapis.com/auth/userinfo.profile` | User Profile Info | View basic profile information |
| `https://www.googleapis.com/auth/userinfo.email` | User Email | View email address |

The read-only tools need only `https://www.googleapis.com/auth/classroom.profile.emails`, `https://www.googleapis.com/auth/classroom.rosters`, `https://www.googleapis.com/auth/classroom.coursework.students` and `https://www.googleapis.com/auth/classroom.courses.readonly`. Allow just those in the **Scopes** picker when you create your own auth credentials, and the connection cannot change anything.

## Use your own Google Classroom OAuth app

With your own OAuth app, people see your company's name on the Google Classroom consent screen, and the client ID and secret belong to you.

1. **Start the credentials in Metorial**

   In the dashboard, select **Settings**, then **Organization Settings**. Under **Integrations and MCP**, select **Provider Auth**, then **Create Auth Credentials**. Choose Google Classroom and copy the **Redirect URI**.

2. **Register the app**

   In the Google Cloud console, enable the API behind Google Classroom under **APIs & Services**, **Library**. Then go to **Google Auth platform**, **Clients**, click **Create Client**, choose **Web application**, and paste the redirect URI from Metorial under **Authorized redirect URIs**. Google shows the client secret only when you create the client.

   The [Google Workspace guide](https://metorial.com/docs/platform/integrations/google-workspace) covers the consent screen and the OAuth client in Google Cloud step by step.

3. **Finish in Metorial**

   Copy the app's client ID and client secret. Back in Metorial, enter a **Name**, the **Client ID** and the **Client Secret**, review **Scopes**, and select **Create**. Then pick these credentials for the Google Classroom integration.

## Admin: share Google Classroom in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **Share a new integration**

   Select **Share a Resource**, then **New Integration**, and choose Google Classroom. For how members connect, choose **Each person connects**, so everyone signs in to Google Classroom as themselves.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from Google Classroom.

4. **Choose who gets it**

   Add the access groups that should see Google Classroom. When a person asks for access from the portal, the request appears under **Access Requests**.

### With the CLI

The CLI cannot create the per-user Google Classroom integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search "google classroom"
```

## Employee: connect Google Classroom

### In the portal

1. **Open Google Classroom in the catalog**

   Sign in to your portal and open Google Classroom. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. A Google Classroom sign-in tab opens. Sign in and approve the permissions listed.

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search "google classroom"
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. 

### Add it to your AI client

`metorial install` adds your Google Classroom connection to a local MCP client such as Claude Code, Cursor or Codex. `metorial list` prints the integration ID and `metorial client list` the client identifiers.

```bash
metorial list "google classroom"
metorial client list
metorial install <client-identifier> <integration-id>
```

For a client that takes a server URL, such as ChatGPT, `metorial install custom <integration-id>` creates an installation token and shows the endpoint details.

## Make it read-only

Open the integration's **Tool Filters** and set the write and destructive groups to **Reject**. Agents keep the 5 read-only tools, such as `get_course` and `list_roster`, and lose the 12 write tools, such as `create_course` or `manage_roster`, and the 2 destructive tools, such as `delete_course` or `delete_coursework`.

Employees see the result on the integration's page in the portal under **Tool access**. For the full walkthrough, see [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list "google classroom"
metorial tools <integration-id>
metorial call <integration-id> list_courses -d '{}'
```

`metorial tools` lists the 19 tools, minus any you rejected. `list_courses` takes no input. It lists courses in Google Classroom.

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (5)

- `get_user_profile`: Retrieve a user profile from Google Classroom by user ID or email address. Needs `userId`.
- `list_roster`: List teachers and/or students enrolled in a Google Classroom course. Needs `courseId`.
- `list_coursework`: List coursework (assignments, questions) in a Google Classroom course. Needs `courseId`.
- `list_courses`: List courses in Google Classroom.
- `get_course`: Retrieve detailed information about a specific Google Classroom course by its ID or alias. Needs `courseId`.

### Write tools (12)

- `manage_submissions`: List, grade, turn in, return, or reclaim student submissions for coursework in Google Classroom. Needs `courseId`, `courseWorkId` and `action`.
- `create_coursework`: Create an assignment, quiz, or other coursework in a Google Classroom course. Needs `courseId`, `title` and `workType`.
- `manage_coursework_materials`: Create, list, update, or delete coursework materials in a Google Classroom course. Needs `courseId` and `action`.
- `update_course`: Update an existing Google Classroom course. Needs `courseId`.
- `manage_guardians`: List, invite, and remove guardians for students in Google Classroom. Needs `studentId` and `action`.
- `manage_roster`: Add or remove teachers and students from a Google Classroom course. Needs `courseId` and `action`.
- `create_course`: Create a new course in Google Classroom. Needs `name`.
- `manage_topics`: Create, list, update, or delete topics in a Google Classroom course. Needs `courseId` and `action`.
- `manage_invitations`: Create, list, accept, or delete course invitations in Google Classroom. Needs `action`.
- `manage_announcements`: Create, list, update, or delete announcements in a Google Classroom course. Needs `courseId` and `action`.
- `manage_rubrics`: Create, list, update, or delete rubrics for coursework in Google Classroom. Needs `courseId`, `courseWorkId` and `action`.
- `update_coursework`: Update selected teacher-editable fields on coursework created by the same Google OAuth developer project.

### Destructive tools (2)

- `delete_course`: Delete a Google Classroom course. Needs `courseId`.
- `delete_coursework`: Delete coursework created by the same Google OAuth developer project.

## Triggers

Google Classroom has 4 triggers, which fire on events in Google Classroom:

- `coursework_changes`: Triggers when coursework (assignments, questions) is created or updated in courses you teach.
- `course_roster_changes`: Triggers when students or teachers are added to or removed from a course.
- `inbound_webhook`
- `announcement_changes`: Triggers when announcements are created or updated in courses you teach.

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use Google Classroom there
- [Create custom OAuth credentials](https://metorial.com/docs/platform/integrations/create-custom-oauth-credentials): the Provider Auth screens in more detail
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Google Workspace guide](https://metorial.com/docs/platform/integrations/google-workspace): the consent screen and the OAuth client in Google Cloud
- [Google Classroom on metorial.com](https://metorial.com/integrations/google-classroom): the integration overview