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

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

Share Word Online with your team in Claude, ChatGPT and Cursor through Metorial: OAuth sign-in, 14 tools (6 read-only).

---

To give your team Word Online in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Word Online integration in a Metorial portal, and each person signs in to Word Online with their own account. Agents can manage Word documents stored in OneDrive and SharePoint via Microsoft Graph. The integration has 14 tools, 6 read-only, 6 write and 2 destructive, plus 1 trigger.

**What you will learn**

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

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An account with Word 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 & Personal** (default) | OAuth | Signs in to Word Online |
| **Work Only** | OAuth | Signs in to Word Online |

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

### Work & Personal

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

| Scope | Name | What it allows |
| --- | --- | --- |
| `Files.Read` | Read Files | Read the signed-in user's files |
| `Files.ReadWrite` | Read/Write Files | Read and write the signed-in user's files |
| `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 Sites | Read items in all site collections (for SharePoint-stored documents) |
| `Sites.ReadWrite.All` | Read/Write Sites | Read and write items in all site collections |
| `offline_access` | Offline Access | Maintain access to data you have given it access to (required for refresh tokens) |
| `User.Read` | User Profile | Read the signed-in user's basic profile |

### Work Only

It requests the same scopes as **Work & Personal**.

### Setup settings

Whichever method you pick, setup also asks for:

- `driveId` (optional): The ID of the OneDrive or SharePoint drive to use. If not specified, the current user's default drive is used.
- `siteId` (optional): The SharePoint site ID. Required when working with SharePoint document libraries instead of OneDrive.

## Use your own Word Online OAuth app

With your own OAuth app, people see your company's name on the Word 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 Word 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 Word Online integration.

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

3. **Limit the tools**

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

4. **Choose who gets it**

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

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

## Employee: connect Word Online

### In the portal

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

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

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. A Word 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 "word online"
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. `metorial setup` uses **Work & Personal**. To connect with **Work Only** 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 Word 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 "word 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 6 read-only tools, such as `get_document` and `list_documents`, and lose the 6 write tools, such as `create_folder` or `share_document`, and the 2 destructive tools, such as `manage_document` or `remove_permission`.

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 "word online"
metorial tools <integration-id>
metorial call <integration-id> list_documents -d '{}'
```

`metorial tools` lists the 14 tools, minus any you rejected. `list_documents` takes no input. It lists files and folders within a specific folder in OneDrive or SharePoint.

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

## Tools

### Read-only tools (6)

- `document_preview`: Get a short-lived embeddable preview URL for a Word document stored in SharePoint or OneDrive for Business. Needs `itemId`.
- `list_permissions`: List all sharing permissions on a Word document or file in OneDrive or SharePoint. Needs `itemId`.
- `get_document`: Retrieve metadata and details for a Word document or file stored in OneDrive or SharePoint.
- `list_documents`: List files and folders within a specific folder in OneDrive or SharePoint.
- `download_document`: Get a pre-authenticated download URL for a Word document or file stored in OneDrive or SharePoint. Needs `itemId`.
- `search_documents`: Search for Word documents and files across OneDrive or SharePoint by name, content, or metadata. Needs `query`.

### Write tools (6)

- `document_checkin_checkout`: Check in or check out a Word document in OneDrive for Business or SharePoint. **Check out** locks the document to prevent others from editing it. **Check in** unlocks the document and makes your changes visible to others. Needs `itemId` and `action`.
- `document_versions`: List or restore previous versions of a Word document in OneDrive or SharePoint. Needs `itemId`.
- `create_folder`: Create a new folder in OneDrive or SharePoint. Needs `folderName`.
- `create_upload_session`: Create a resumable upload session for uploading large files (>4MB) to OneDrive or SharePoint. Needs `parentFolderId` and `fileName`.
- `upload_document`: Upload or create a new document in OneDrive or SharePoint. Needs `fileName` and `content`.
- `share_document`: Share a Word document or file by creating a sharing link or inviting specific users. Needs `itemId` and `method`.

### Destructive tools (2)

- `remove_permission`: Remove a sharing permission from a Word document or file in OneDrive or SharePoint. Needs `itemId` and `permissionId`.
- `manage_document`: Perform file management operations on a Word document or file in OneDrive or SharePoint. Needs `itemId` and `action`.

## Triggers

Word Online has 1 trigger, which fire on events in Word Online:

- `drive_item_changes`: Triggers when files or folders are created, updated, or deleted in OneDrive or SharePoint.

## 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 Word 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
- [Word Online on metorial.com](https://metorial.com/integrations/microsoft-word-online): the integration overview