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

# Microsoft 365 Integration

> Connect Outlook mail and calendar in a single OAuth connection. Pick which permissions to grant, and how your Microsoft 365 admin can approve Statisfy for the whole org in one click.

### Connect Microsoft 365 with Statisfy

The Microsoft 365 integration links your **Outlook** mail and calendar to Statisfy through a single OAuth connection. You choose exactly which permissions to grant at connect time, and can change them later.

Once connected, Statisfy can:

* Sync your **email threads** in near real-time (when **Read email** is granted)
* Pull historical and ongoing **Outlook calendar events** (when **Read calendar** is granted)
* Send emails from your Outlook account via Workbench or Agent Studio components (when **Send email on your behalf** is granted)

<Note>
  Microsoft 365 is a **per-user** integration — each user who wants Statisfy to act on their behalf must connect their own Microsoft account. Connecting yours does not give Statisfy access to your teammates' mail or calendar.
</Note>

### Permissions You Choose

When you click Connect, the dialog shows three checkboxes. Tick only what you need — at least one must be selected.

| Permission                    | Default | What it enables                                                                                                                                          |
| ----------------------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Read email**                | ✅ On    | Pulls inbound and outbound Outlook messages so customer conversations attach to the right accounts and people.                                           |
| **Read calendar**             | ✅ On    | Pulls upcoming and past Outlook calendar events and links them to customer records.                                                                      |
| **Send email on your behalf** | ✅ On    | Lets Statisfy send emails **from your Outlook address** — only when you trigger them through Stella, Agent Studio flows, or the Statisfy email composer. |

### Prerequisites

* A **Microsoft 365** work or school account
* The Statisfy admin must have enabled the Microsoft 365 integration in your org
* A connected CRM (Salesforce or HubSpot) — non-CRM integrations are gated until at least one CRM sync has completed
* Pop-ups allowed for Statisfy in your browser (the Microsoft sign-in opens in a new window)

### Steps to Connect

1. **Log in to Statisfy.**
2. Navigate to **Integrations → User Apps → Microsoft 365**.
3. Click the Microsoft 365 card. The connect dialog appears with the three permission checkboxes.
4. Tick or untick the boxes to match what you want Statisfy to do.
5. Click **Connect your account**.
6. A Microsoft sign-in window pops up. Sign in if needed, then review the requested permissions — they'll match exactly what you checked. Click **Accept**.
7. The pop-up closes automatically. The Microsoft 365 card will show **Connected** within a few seconds.

A one-time **30-day backfill** runs for each surface you granted (mail and/or calendar). After that, Statisfy stays in sync via Microsoft Graph push notifications — new messages and events arrive within seconds.

### Seeing an "Approval required" screen?

If your Microsoft admin has restricted user consent for third-party apps (a common default in Microsoft 365 tenants), you'll see a screen titled **"Approval required"** instead of the normal permissions prompt. It lists the permissions you selected in the connect dialog and shows a **Request approval** button instead of letting you accept.

This is a Microsoft-side policy — not a Statisfy issue. Individual users cannot self-consent to the requested scopes; only your Microsoft 365 admin can grant them, and it needs to be done just once for the whole organization.

Ask your Microsoft 365 admin to grant tenant-wide admin consent for Statisfy. Once they do, every user in your org can connect without seeing the approval prompt.

### Guide for the Microsoft 365 Admin (One-Time Setup)

Send this section to whoever manages your Microsoft 365 tenant.

1. Open the [Microsoft Entra admin center](https://entra.microsoft.com) and sign in with an account that has the **Global Administrator**, **Privileged Role Administrator**, or **Cloud Application Administrator** role.

2. In the left navigation, go to **Applications → Enterprise applications → All applications**.

3. Search for **Statisfy** and open the entry whose **Application ID** is `0c6941a3-d913-4963-8cae-67a7e25a345f`. You may see more than one result (older test apps, legacy proxy apps, etc.) — pick this specific one; grants on any other entry will not fix the approval prompt.

   <Note>
     If Statisfy does not appear in the list yet, at least one user in your org must have started the connect flow (which auto-provisions the Statisfy service principal in your tenant). If none of your users has attempted to connect, ask one to do so and refresh this page.
   </Note>

4. In the app's left navigation, click **Security → Permissions**.

5. Click **Grant admin consent for \[your organization]**.

6. A Microsoft sign-in window opens. Sign in with your admin account and review the permissions Statisfy is requesting:
   * **Mail.Read** — read the signed-in user's mail
   * **Mail.Send** — send mail as the signed-in user
   * **Calendars.Read**, **Calendars.ReadWrite** — read and write the signed-in user's calendar
   * **User.Read** — sign in and read the user's basic profile
   * **openid**, **profile**, **email**, **offline\_access** — standard sign-in scopes

7. Click **Accept**.

That's it. Every user in your org can now connect Microsoft 365 in Statisfy without seeing the "Approval required" screen.

<Note>
  This grant is a one-time, org-wide operation. Statisfy still acts strictly on behalf of each individual user who chooses to connect — it does not read anyone's mail or calendar until that user completes their own connect flow and picks the permissions they want.
</Note>

### Troubleshooting

**"I clicked Grant admin consent but users still see the approval prompt."**

Verify on the Permissions page that all five Microsoft Graph permissions above are listed under **Admin consent** with a green tick, not just some of them. If only a partial list appears, click **Grant admin consent** again — Microsoft occasionally records a partial grant if the admin dismissed the popup early.

**"Statisfy isn't showing up in Enterprise applications."**

Ask one user to start the connect flow in Statisfy (they can cancel at the "Approval required" screen). That provisions the Statisfy service principal in your tenant. Refresh the Enterprise applications list — Statisfy should now appear.

**"I get an error that I don't have permission to grant consent."**

You need one of these Entra roles: Global Administrator, Privileged Role Administrator, or Cloud Application Administrator. Ask whoever holds one of those roles to complete the steps above.
