---
title: "Connect Microsoft 365 mail with Graph API"
site: admin
version: 1.11
versions: "1.11+"
url: https://docs-new.servicely.ai/admin/1.11/messaging/connect-microsoft-365-graph-api/
type: task
application: system_email
last_updated: 2026-10-18
commit: 50111ae9bd3b
---


Connect a Microsoft 365 mailbox through Microsoft Graph when you want one messaging account to both collect and send email. It is for administrators with access to Microsoft Entra ID and to the Servicely Admin Console.

## Before you begin

- You need the `administrator` role in Servicely.
- You need permission to create app registrations and grant admin consent in Microsoft Entra ID.
- The mailbox exists in Microsoft 365. A new mailbox can take several hours to become available through Graph.

## Steps

<Steps>
  <Step>
    In Microsoft Entra ID, create an app registration for Servicely. Note its application (client) ID and its tenant ID.
  </Step>
  <Step>
    Under **API permissions**, add the Microsoft Graph application permissions **Mail.Read**, **Mail.ReadWrite** and **Mail.Send**. Grant admin consent for them.

    <Image src="asset:screenshots/admin/messaging-connect-microsoft-365-graph-api/image.png">The Mail.Read, Mail.ReadWrite and Mail.Send permissions listed under Microsoft Graph, each of type Application.</Image>
  </Step>
  <Step>
    Under **Certificates & secrets**, create a client secret. Keep a copy of its value for the Servicely record.
  </Step>
  <Step>
    Limit the app to the mailboxes Servicely uses with a Microsoft application access policy. Without one, the application permissions apply to every mailbox in the tenant.
  </Step>
  <Step>
    In Servicely, go to **Administration → Messaging → Messaging accounts** and select **New**.
  </Step>
  <Step>
    Fill in the fields as the table below describes, then save the record.
  </Step>
  <Step>
    Select **Test Connection** and confirm the dialog reports "Connection test successful".
  </Step>
</Steps>

| Field | Value |
| --- | --- |
| **Name** | A name that identifies the mailbox and environment |
| **Provider** | Email |
| **Type** | Microsoft Graph API (Inbound/Outbound Email) |
| **Active** | Yes |
| **Username** | The mailbox address or user principal name Servicely reads from and sends as |
| **Tenant Id** | The tenant ID of your Microsoft Entra ID directory |
| **Client Id** | The application (client) ID of the app registration |
| **App secret** | The client secret value |

<Callout type="info">
  Servicely reads new mail from the mailbox's Inbox folder. To send notifications through this account when they name no account, set **Default** to **Yes**.
</Callout>

## Result

The messaging account is active and its connection test passes. Once the **Inbound email processing** and **Outbound email processing** jobs are active, Servicely collects mail from the Inbox and sends notifications through Graph every minute.

## Related

- [Create a messaging account](page:messaging/messaging-accounts)
- [Connect Microsoft 365 mail with OAuth2](page:messaging/connect-microsoft-365-oauth2)
- [Troubleshoot messaging accounts](page:messaging/troubleshoot-messaging-accounts)
- [Inbound message fields](page:messaging/inbound-messages)
