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

# Connect your app to Microsoft 365

> Connect Microsoft Outlook, Teams, OneDrive, Word, Excel, PowerPoint, and OneNote to your Lovable app. All use the same Microsoft sign-in and Microsoft Graph pattern—one guide for every Microsoft connector.

Lovable offers several **Microsoft** app connectors. Each one targets a specific product, but they all work the **same way**: you sign in with **Microsoft** (Entra ID / Microsoft account), Lovable stores tokens securely, and your app calls **[Microsoft Graph](https://learn.microsoft.com/en-us/graph/overview)** through Lovable’s **connector gateway** with automatic token refresh.

## Included Microsoft connectors

| Connector in Lovable     | What it’s for                                                                                     |
| :----------------------- | :------------------------------------------------------------------------------------------------ |
| **Microsoft Outlook**    | Email: read, send, and manage mail in the signed-in mailbox (within granted permissions).         |
| **Microsoft Teams**      | Teams and channels: messages, team and channel lists, and related conversations APIs.             |
| **Microsoft OneDrive**   | Files: upload, download, and work with files in the user’s OneDrive.                              |
| **Microsoft Word**       | Documents: read and write Word files via Graph (for example files stored in OneDrive/SharePoint). |
| **Microsoft Excel**      | Spreadsheets: read and work with Excel workbooks through Graph.                                   |
| **Microsoft PowerPoint** | Presentations: read and write PowerPoint files via Graph.                                         |
| **Microsoft OneNote**    | Notes: notebooks, sections, and pages in OneNote.                                                 |

Pick the connector that matches what you are building. You can add **more than one** connection if you need different Microsoft accounts or environments.

## How Microsoft connections work

* **OAuth 2.0**: You authorize a **Microsoft account** for that product. Permissions depend on the **scopes** requested for that connector (some connectors expose optional **Advanced settings** for scopes—grant only what your app needs).
* **Microsoft Graph**: Requests go to `https://graph.microsoft.com/v1.0/` via Lovable’s **connector gateway**. See [Gateway-based connectors](/integrations/introduction#gateway-based-connectors) for secure token handling and **per-project request limits**.
* **Same flow everywhere**: Add connection → sign in with Microsoft → approve consent → link the connection to projects. Only the **connector name** and **API surface** change between Outlook, Teams, OneDrive, etc.

<Note>
  Microsoft 365 **licensing**, **tenant policies**, and **Graph throttling** are controlled by **Microsoft** and your organization—not Lovable.
</Note>

## How to connect (any Microsoft product)

Workspace **admins** and **owners** can create Microsoft connections.

1. Open **Connectors** → **App connectors**.
2. Choose the **Microsoft** connector you need—for example **Microsoft Outlook** or **Microsoft Teams** (each product has its own tile).
3. Click **Add connection**, enter a **Display name**, and complete **Connect** / **Sign in with Microsoft**.
4. Accept the permissions shown for that product.
5. **Link** the connection to a project, by prompting the Lovable agent in the project to connect.

If your organization uses conditional access or admin consent, you may need your IT admin to approve the app for the tenant.

For API details for a specific workload, see the [Microsoft Graph REST API reference](https://learn.microsoft.com/en-us/graph/api/overview).

## Managing and removing connections

Steps match other app connectors; only the **product** you select in Settings changes.

### Unlink projects from a connection

Editors and above can unlink projects without deleting the connection.

1. Open **Connectors** → **App connectors** and select the **same Microsoft connector** you used (for example **Microsoft OneDrive**).
2. Open the connection → **Linked projects** → choose projects → **Unlink projects**.

### Delete a connection

Workspace admins and owners can delete a connection.

<Warning>
  Deleting a connection is permanent. Linked projects lose access until you add a new connection.
</Warning>

1. **Connectors** → **App connectors** → pick the Microsoft product (for example **Microsoft Excel**).
2. Open the connection → review **Linked projects** → **Delete** under delete options → confirm.

## Limitations

* Each connection is tied to **one** authorized Microsoft identity (and that identity’s mail, files, teams, etc., per scopes)—not each visitor’s account unless you build a separate auth story.
* **Tenant and admin policies** (consent, MFA, blocked apps) can block or limit sign-in; resolve those in Microsoft 365 / Entra ID.
* **Gateway limits** apply as in [Gateway-based connectors](/integrations/introduction#gateway-based-connectors).
