> ## Documentation Index
> Fetch the complete documentation index at: https://docs.siro.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Microsoft 365

> Connect Ask Siro to Microsoft 365 (Outlook, Calendar, Teams, OneDrive, SharePoint and Copilot) through Microsoft's Work IQ MCP server.

Ask Siro connects to Microsoft 365 through **Work IQ**, Microsoft's MCP server for Microsoft 365 data. Each person signs in with their own Microsoft account, and Ask Siro can only reach what that person can already access.

> ***Note:*** *MCP servers are in beta. Contact [support@siro.ai](mailto:support@siro.ai) to turn them on for your organization. See [MCP Servers](https://docs.siro.ai/Integrations/MCP_Servers.md) for how connections work in general.*

## What Ask Siro can do

* **Read:** mail, calendar, Teams chats and channels, OneDrive and SharePoint files, and people. People can also ask Microsoft 365 Copilot a question from inside Ask Siro.
* **Make changes**, if your admin allows them (see step 5 below): send and reply to mail, create and update calendar events, post Teams messages, and manage Planner tasks. Ask Siro asks the person to confirm every change first.
* **Not yet supported by Microsoft:** saving a file's contents to OneDrive or SharePoint. Work IQ can create folders and empty files, but Microsoft hasn't released uploading file contents yet. Ask Siro will give you the content to save yourself.

## Before you begin

* You need a **Global Administrator**, or an admin who can register apps and grant tenant-wide consent, in Microsoft Entra.
* Work IQ requires **Microsoft 365 Copilot** in your tenant. Check Microsoft's [Work IQ licensing](https://learn.microsoft.com/en-us/microsoft-365/copilot/extensibility/work-iq/claude) for what your users need.
* **Work IQ is billed by Microsoft by usage** (Copilot Credits) on your Microsoft bill, so you'll set up a pay-as-you-go policy in step 4.

## Step 1: Register an app in Microsoft Entra

1. In the [Microsoft Entra admin center](https://entra.microsoft.com), go to **App registrations → New registration**.
2. Name it (for example, "Siro"), choose **Accounts in this organizational directory only**, and under **Redirect URI** choose **Web** and paste the **Redirect URL** shown in Siro's **Add app** form.
3. Click **Register**. On the app's **Overview** page, note the **Application (client) ID** and the **Directory (tenant) ID**.

## Step 2: Create a client secret

1. In the app, go to **Certificates & secrets → New client secret**, and click **Add**.
2. Copy the secret's **Value** right away. Microsoft only shows it once, and it's the **Value** column you need, not the **Secret ID**.

## Step 3: Add the Work IQ permissions

1. In the app, go to **API permissions → Add a permission → APIs my organization uses**, and search for **Work IQ**.
2. Choose **Delegated permissions** and select **WorkIQAgent.Ask**, **WorkIQ.Read** and **WorkIQ.Act**. Click **Add permissions**.
3. Click **Grant admin consent for (your organization)**. All three should show **Granted**.

If **Work IQ** doesn't appear in the list, Work IQ isn't enabled for your tenant yet. Follow Microsoft's [Work IQ setup guide](https://learn.microsoft.com/en-us/microsoft-365/copilot/extensibility/work-iq/claude) to enable it, then try again. Don't add Microsoft Graph mail, file or chat permissions: Work IQ doesn't need them.

## Step 4: Set up Work IQ billing

1. In the [Microsoft 365 admin center](https://admin.cloud.microsoft), go to **Copilot → Cost Management**.
2. Add or edit a pay-as-you-go spending policy that includes **Work IQ API for custom apps and agents**, and assign it to the people who will connect.

Without this, requests fail with a billing or credit error.

## Step 5 (optional): Allow changes

By default, Work IQ only reads. To let Ask Siro send mail, create events and make other changes, go to **Agents → Tools → Work IQ MCP → Policy** in the Microsoft 365 admin center and turn on the kinds of changes you want to allow. Changes can take up to 24 hours to apply.

## Step 6: Add Microsoft 365 in Siro

1. Go to **Integrations → MCP connections → Add app** and choose **Microsoft 365**.
2. Enter the **Client ID** and **Client secret** (the Value from step 2).
3. Enter your **Directory (tenant) ID**. Siro only accepts connections from this tenant, so nobody can connect a personal or test account by mistake.
4. Click **Add app**. Then connect your own account under **Settings → Connected apps** and ask Ask Siro something like "What's on my calendar today?" to check that it works.

## Troubleshooting

| What you see | What to check |
| - | - |
| `AADSTS7000215: Invalid client secret` when connecting | You entered the secret's ID instead of its **Value**. Create a new secret, then remove Microsoft 365 in Siro and add it again with the Value. |
| `AADSTS650057` or a permission error when connecting | The Work IQ permissions aren't on the app or don't have admin consent. Repeat step 3. |
| A billing or credit error | The person isn't covered by the spending policy in step 4. |
| "Access denied" when Ask Siro tries to change something | Writes aren't allowed in the Work IQ policy (step 5), or that kind of change isn't supported by Work IQ yet. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.