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

# Set up Excel Online in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/microsoft-excel-online
Last updated: 2026-11-24

Share Excel Online with your team in Claude, ChatGPT and Cursor through Metorial: OAuth sign-in, 12 tools (3 read-only).

---

To give your team Excel Online in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Excel Online integration in a Metorial portal, and each person signs in to Excel Online with their own account. Agents can read and write Excel workbook data stored in OneDrive for Business and SharePoint. The integration has 12 tools, 3 read-only, 3 write and 6 destructive, plus 2 triggers.

**What you will learn**

- How an admin shares Excel Online in a portal and how each person connects
- The 8 OAuth scopes Excel Online can request, and what each one allows
- How to keep the 3 read-only tools and reject the other 9

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An account with Excel Online 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 methods

| Method | Type | What a person provides |
| --- | --- | --- |
| **Work Only** (default) | OAuth | Signs in to Excel Online |
| **Work & Personal** | OAuth | Signs in to Excel Online |

The portal and `metorial setup` use **Work Only** unless someone picks another method.

### Work Only

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

| Scope | Name | What it allows |
| --- | --- | --- |
| `Files.Read` | Read Files | Read-only access to the user's files and Excel workbooks |
| `Files.ReadWrite` | Read/Write Files | Read and write access to the user's files and Excel workbooks |
| `Files.Read.All` | Read All Files | Read all files the user can access |
| `Files.ReadWrite.All` | Read/Write All Files | Read and write all files the user can access |
| `Sites.Read.All` | Read All Sites | Read SharePoint sites the user can access |
| `Sites.ReadWrite.All` | Read/Write All Sites | Read and write SharePoint sites the user can access |
| `User.Read` | User Profile | Read the user's basic profile information |
| `offline_access` | Offline Access | Maintain access to data you have given it access to (required for refresh tokens) |

### Work & Personal

It requests the same scopes as **Work Only**.

### Setup settings

Whichever method you pick, setup also asks for:

- `driveId` (optional): The ID of the OneDrive for Business or SharePoint drive. If not provided, the default drive of the authenticated user will be used.
- `siteId` (optional): The SharePoint site ID to use for accessing workbooks. If provided, driveId is relative to this site.

## Use your own Excel Online OAuth app

With your own OAuth app, people see your company's name on the Excel Online 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 Excel Online and copy the **Redirect URI**.

2. **Register the app**

   In the Microsoft Entra admin center, go to **Entra ID**, **App registrations** and select **New registration**. Under **Authentication**, add a redirect URI on the **Web** platform and paste the one from Metorial. Create a client secret under **Certificates & secrets** and copy its **Value**, which Microsoft shows only once.

   The [Microsoft 365 guide](https://metorial.com/docs/platform/integrations/microsoft-365) covers the app registration, client secret and admin consent in Microsoft Entra 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 Excel Online integration.

## Admin: share Excel Online 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 Excel Online. Under **Auth Method**, keep **Work Only** or pick another. For how members connect, choose **Each person connects**, so everyone signs in to Excel Online as themselves.

3. **Limit the tools**

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

4. **Choose who gets it**

   Add the access groups that should see Excel Online. 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 Excel Online integration. Once it exists, check which groups have it:

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

## Employee: connect Excel Online

### In the portal

1. **Open Excel Online in the catalog**

   Sign in to your portal and open Excel Online. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. An Excel Online 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 "excel online"
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. `metorial setup` uses **Work Only**. To connect with **Work & Personal** instead, find its ID with `metorial catalog get <catalog-item-id>` and add `--auth-method <auth-method-id>`.

### Add it to your AI client

`metorial install` adds your Excel Online 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 "excel online"
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 3 read-only tools, such as `read_range` and `find_workbooks`, and lose the 3 write tools, such as `manage_sessions` or `sort_filter_table`, and the 6 destructive tools, such as `write_range` or `manage_charts`.

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 "excel online"
metorial tools <integration-id>
metorial call <integration-id> find_workbooks -d '{"action":"search"}'
```

`metorial tools` lists the 12 tools, minus any you rejected. `find_workbooks` needs `action`, so replace the placeholders. It searches for Excel workbook files (.xlsx) in OneDrive for Business or SharePoint by keyword, or list workbooks in a specific folder.

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

## Tools

### Read-only tools (3)

- `read_range`: Read cell values, formulas, and number formats from a specific range or the used range of a worksheet. Needs `workbookItemId` and `worksheetIdOrName`.
- `find_workbooks`: Search for Excel workbook files (.xlsx) in OneDrive for Business or SharePoint by keyword, or list workbooks in a specific folder. Needs `action`.
- `invoke_function`: Execute an Excel built-in calculation function remotely (e.g., SUM, VLOOKUP, PMT, ABS, IF). Needs `workbookItemId`, `functionName` and `parameters`.

### Write tools (3)

- `manage_sessions`: Create, refresh, or close workbook sessions for efficient multi-step interactions with an Excel workbook. Needs `workbookItemId` and `action`.
- `manage_named_items`: List, get, or create named ranges and constants in an Excel workbook. Needs `workbookItemId` and `action`.
- `sort_filter_table`: Apply sorting or filtering to a structured Excel table. Needs `workbookItemId`, `tableIdOrName` and `action`.

### Destructive tools (6)

- `manage_tables`: Create, list, update, delete, or convert structured tables in an Excel workbook. Needs `workbookItemId` and `action`.
- `manage_table_rows`: Add or delete rows in a structured Excel table. Needs `workbookItemId`, `tableIdOrName` and `action`.
- `manage_charts`: Create, list, update, delete charts, or retrieve a chart image from an Excel worksheet. Needs `workbookItemId`, `worksheetIdOrName` and `action`.
- `write_range`: Write values, formulas, or number formats to a specific cell range in a worksheet. Needs `workbookItemId`, `worksheetIdOrName` and `rangeAddress`.
- `manage_table_columns`: List, add, or delete columns in a structured Excel table. Needs `workbookItemId`, `tableIdOrName` and `action`.
- `manage_worksheets`: List, create, update, or delete worksheets in an Excel workbook. Needs `workbookItemId` and `action`.

## Triggers

Excel Online has 2 triggers, which fire on events in Excel Online:

- `inbound_webhook`
- `workbook_changed`: Triggers when an Excel workbook (.xlsx) file is created, modified, or deleted in the configured drive.

## 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 Excel Online 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
- [Microsoft 365 guide](https://metorial.com/docs/platform/integrations/microsoft-365): the app registration, client secret and admin consent in Microsoft Entra
- [Excel Online on metorial.com](https://metorial.com/integrations/microsoft-excel-online): the integration overview