Docs
On this page
task2 min readApplication: System Email

Connect Microsoft 365 mail with Graph API

Register an application in Microsoft Entra ID and create a Graph API messaging account that reads and sends one mailbox.

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

  1. In Microsoft Entra ID, create an app registration for Servicely. Note its application (client) ID and its tenant ID.

  2. Under API permissions, add the Microsoft Graph application permissions Mail.Read, Mail.ReadWrite and Mail.Send. Grant admin consent for them.

    The Mail.Read, Mail.ReadWrite and Mail.Send permissions listed under Microsoft Graph, each of type Application.
  3. Under Certificates & secrets, create a client secret. Keep a copy of its value for the Servicely record.

  4. 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.

  5. In Servicely, go to Administration → Messaging → Messaging accounts and select New.

  6. Fill in the fields as the table below describes, then save the record.

  7. Select Test Connection and confirm the dialog reports “Connection test successful”.

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

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.

Last updated 18 October 2026commit 50111ae9bd3bChris Jones
Back to top