Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Set up Microsoft Exchange Online spoke

Integrate the ServiceNow instance and Microsoft Exchange Online account by creating a custom OAuth application in Microsoft Exchange Online to authenticate ServiceNow requests.

Before you begin

  • Request an Integration Hub subscription.
  • Activate the Microsoft Exchange Online spoke.
  • Role required: admin.

Register an application using the Microsoft Azure portal

Provide authorization to the ServiceNow instance by registering an application with Azure AD.

Before you begin

Role required: Azure Active Directory admin

About this task

Complete these steps from the Microsoft Azure portal. For instructions on registering an application, see the Microsoft Azure documentation.

Procedure

  1. In the Microsoft Azure portal, add the Redirect URIs in this format: https://<instance-name>.service-now.com/oauth_redirect.do

  2. For the Required Permissions, select Microsoft Graph.

    Note: The permissions displayed here are needed to use all the spoke actions. However if you want to use only some of the actions, you can add only the required permissions. For more information about the required permissions for each action, see Spoke actions.

Image omitted: ms-exchange-online-spoke-permissions.png
Permissions required for Microsoft Exchange Online spoke
  1. Record the Client Secret for use in later configurations.

Result

The ServiceNow application is created with Microsoft Azure AD.

Configure a connection for the Microsoft Exchange Online spoke

Perform actions in Microsoft Exchange Online by configuring connection records for your Microsoft Exchange Online account. The Microsoft Exchange Online spoke connection and credential alias uses these connections to perform actions.

Before you begin

Role required: admin.

Procedure

  1. Navigate to All > IntegrationHub > Connections & Credentials > Connection & Credential Aliases.

  2. Locate the Microsoft_Exchange_Online connection alias.

  3. For Configuration Template, ensure that Microsoft Exchange Online Authorization Code is selected.

  4. Click the Create New Connection & Credential related link.

  5. On the form, fill in the fields.

    FieldDescription
    Connection Information
    NameName to uniquely identify the connection. For example, Microsoft_Exchange_Online.
    Connection URLEnter https://graph.microsoft.com.
    API VersionEnter v1.0.
    Credential Information
    NameName to identify the credential record. For example, Exchange_Online Creds.
    Authorization URLOAuth authorization code endpoint. Enter https://login.microsoftonline.com/<Directory-ID>/oauth2/v2.0/authorize
    Token URLOAuth server token endpoint. Enter https://login.microsoftonline.com/<Directory-ID>/oauth2/v2.0/token
    Token Revocation URLOAuth server token revocation endpoint.
    OAuth Client IDApplication ID created during application registration.
    OAuth Client SecretClient secret created during application registration.
    OAuth Redirect URLOAuth callback endpoint. Enter https://<instance-name>.service-now.com/oauth_redirect.do
  6. Click Create and Get OAuth Token.

  7. Click the Child Aliases tab.

  8. Click the Microsoft_Exchange_Online_clientCred connection record.

  9. Click the Create New Connection & Credential related link.

  10. On the form, fill in the fields.

    FieldDescription
    Connection Information
    NameName to uniquely identify the connection. For example, Microsoft_Exchange_Online_ClientCred.
    Connection URLEnter https://graph.microsoft.com.
    Credential Information
    NameName to identify the credential record. For example, Exchange_Online_ClientCred Creds.
    Token URLOAuth server token endpoint. Enter https://login.microsoftonline.com/<Directory-ID>/oauth2/v2.0/token
    OAuth Client IDApplication ID created during application registration.
    OAuth Client SecretClient secret created during application registration.
  11. Click Create and Get OAuth Token.

Result

The Microsoft Exchange Online spoke is set up and integrated with the ServiceNow instance.

Create a credential record for the Microsoft Exchange Online spoke Mailbox actions

Create a credential record for the Microsoft Exchange Online spoke Mailbox actions. The Microsoft Exchange Online spoke connection and credential alias uses these credentials to authorize Mailbox actions.

Before you begin

  • Make sure that MID Server is setup and configured
  • Make sure that Power Shell with EXO V2 module is installed. This module is required for executing Mailbox management actions.
  • Role required: admin

Procedure

  1. Navigate to All > Connections & Credentials > Credentials.

  2. Click New.

    The system displays this message: What type of Credentials would you like to create?

  3. Select Windows Credentials.

  4. On the form, fill in the fields.

    FieldDescription
    NameName to uniquely identify the record. For example, MS Exchange Online Mailbox Cred.
    ActiveOption to actively use the credential record.
    User nameUPN or login ID of the Entra ID user.
    PasswordPassword of the Entra ID user.
    Applies toOption to specify if the credential applies to all MID Servers in your network, or to one or more Specific MID servers. Specify the MID Servers that should use this credential in the MID servers field.
    OrderOrder to apply this credential. For example, 100.
    Credential aliasCredential alias associated with the spoke.
  5. Right-click the form header and click Submit.

Result

A Windows Credential record is created for the Microsoft Exchange Online spoke Mailbox actions.

Configure a connection record for the Microsoft Exchange Online spoke Mailbox actions

Configure a connection record for your Microsoft Exchange Online spoke Mailbox actions. The Microsoft Exchange Online spoke connection and credential aliases use these connections to perform only Mailbox actions.

Before you begin

  • Make sure that MID Server is setup and configured
  • Make sure that Power Shell with EXO V2 module is installed. This module is required for executing Mailbox management actions.
  • Role required: admin

Procedure

  1. Navigate to All > Connections & Credentials > Connections & Credentials Aliases.

  2. Open the Microsoft Exchange Online MID record.

  3. From the Connections tab, click New.

  4. On the form, fill these fields.

    FieldDescription
    NameName to uniquely identify the record. For example, MS Exchange Online Mailbox Connection.
    CredentialCredential record created for Microsoft Exchange Online spoke Mailbox actions. For example, MS Exchange Online Mailbox Cred.
    Connection aliasAlias record associated with this connection.
    Connection URLBase URL to connect to Microsoft Exchange Online. Enter: 127.0.0.1
    ActiveOption to actively use the connection record.
    DomainDomain that the action runs in.
    Override default portTarget port used by the connection. If blank, the system uses the default port.
    Use MID serverOption to use MID Servers for this connection. If the check box is selected, define the fields in the Advanced MID Server Configuration related list.
  5. Click Submit.

Result

A connection record is created for Microsoft Exchange Online spoke Mailbox actions.