---
sourceDocument: Australia Workflow Data Fabric
sourceDocumentLink: https://www.servicenow.com/docs/r/integrate-applications

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia Workflow Data Fabric

ft:clusterId :

    - crint

bundleId :

    - crint

workflow :

    - Creator


---

# Set up Microsoft Exchange Online spoke

# Set up Microsoft Exchange Online spoke {#ariaid-title1}

* Release version: Australia
* 
* Updated March 12, 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 4 minutes to read

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.
{#setup-ms-exch-ol__ul_sh4_dtg_2hb}

## Register an application using the Microsoft Azure portal {#ariaid-title2}

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](https://docs.microsoft.com/en-gb/).

### Procedure

1. In the Microsoft Azure portal, add the Redirect URIs in this format: <kbd class="ph userinput">https://&lt;instance-name&gt;.service-now.com/oauth_redirect.do</kbd>
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](https://www.servicenow.com/docs/5vD_~5uXIaYSzJB8sWLW6g#ms-exch-online-spoke__section_sdg_dw2_53b).
3. Record the Client Secret for use in later configurations.
{#reg-app-msexch-online__steps_zc2_jwv_cjb}

### Result

The ServiceNow application is created with Microsoft Azure AD.

## Configure a connection for the Microsoft Exchange Online spoke {#ariaid-title3}

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 AllIntegrationHubConnections \& CredentialsConnection \& 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.  
   {#create-conn-msexchngonline__table_tfv_3d5_h5b__entry__2}

   | Field | Description |
   |-|-|
   | Connection Information ||
   | Name | Name to uniquely identify the connection. For example, <kbd class="ph userinput">Microsoft_Exchange_Online</kbd>. |
   | Connection URL | Enter <kbd class="ph userinput">https://graph.microsoft.com</kbd>. |
   | API Version | Enter <kbd class="ph userinput">v1.0</kbd>. |
   | Credential Information ||
   | Name | Name to identify the credential record. For example, <kbd class="ph userinput">Exchange_Online Creds</kbd>. |
   | Authorization URL | OAuth authorization code endpoint. Enter <kbd class="ph userinput">https://login.microsoftonline.com/&lt;Directory-ID&gt;/oauth2/v2.0/authorize</kbd> |
   | Token URL | OAuth server token endpoint. Enter <kbd class="ph userinput">https://login.microsoftonline.com/&lt;Directory-ID&gt;/oauth2/v2.0/token</kbd> |
   | Token Revocation URL | OAuth server token revocation endpoint. |
   | OAuth Client ID | Application ID created during application registration. |
   | OAuth Client Secret | Client secret created during application registration. |
   | OAuth Redirect URL | OAuth callback endpoint. Enter <kbd class="ph userinput">https://&lt;instance-name&gt;.service-now.com/oauth_redirect.do</kbd> |
   [ ]

   {#create-conn-msexchngonline__table_tfv_3d5_h5b}
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.  
    {#create-conn-msexchngonline__table_a4d_lh3_njc__entry__2}

    | Field | Description |
    |-|-|
    | Connection Information ||
    | Name | Name to uniquely identify the connection. For example, <kbd class="ph userinput">Microsoft_Exchange_Online_ClientCred</kbd>. |
    | Connection URL | Enter <kbd class="ph userinput">https://graph.microsoft.com</kbd>. |
    | Credential Information ||
    | Name | Name to identify the credential record. For example, <kbd class="ph userinput">Exchange_Online_ClientCred Creds</kbd>. |
    | Token URL | OAuth server token endpoint. Enter <kbd class="ph userinput">https://login.microsoftonline.com/&lt;Directory-ID&gt;/oauth2/v2.0/token</kbd> |
    | OAuth Client ID | Application ID created during application registration. |
    | OAuth Client Secret | Client secret created during application registration. |
    [ ]

    {#create-conn-msexchngonline__table_a4d_lh3_njc}
11. Click Create and Get OAuth Token.
{#create-conn-msexchngonline__steps_gqs_mhg_njc}

### 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 {#ariaid-title4}

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
{#create-cred-ms-exchg-online-mailbox-action__ul_tws_1r5_rsb}

### Procedure

1. Navigate to AllConnections \& CredentialsCredentials.
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.  
   {#create-cred-ms-exchg-online-mailbox-action__table_odt_2r5_rsb__entry__2}

   | Field | Description |
   |-|-|
   | Name | Name to uniquely identify the record. For example, MS Exchange Online Mailbox Cred. |
   | Active | Option to actively use the credential record. |
   | User name | UPN or login ID of the Entra ID user. |
   | Password | Password of the Entra ID user. |
   | Applies to | Option 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. |
   | Order | Order to apply this credential. For example, <kbd class="ph userinput">100</kbd>. |
   | Credential alias | Credential alias associated with the spoke. |
   [Table 1. Windows Credentials form]

   {#create-cred-ms-exchg-online-mailbox-action__table_odt_2r5_rsb}
5. Right-click the form header and click Submit.
{#create-cred-ms-exchg-online-mailbox-action__steps_on2_qq5_rsb}

### 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 {#ariaid-title5}

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
{#create-conn-ms-exchange-online-mailbox-action__ul_ffd_ln5_rsb}

### Procedure

1. Navigate to AllConnections \& CredentialsConnections \& Credentials Aliases.
2. Open the Microsoft Exchange Online MID record.
3. From the Connections tab, click New.
4. On the form, fill these fields.  
   {#create-conn-ms-exchange-online-mailbox-action__table_uny_rh5_rsb__entry__2}

   | Field | Description |
   |-|-|
   | Name | Name to uniquely identify the record. For example, <kbd class="ph userinput">MS Exchange Online Mailbox Connection</kbd>. |
   | Credential | Credential record created for Microsoft Exchange Online spoke Mailbox actions. For example, <kbd class="ph userinput">MS Exchange Online Mailbox Cred</kbd>. |
   | Connection alias | Alias record associated with this connection. |
   | Connection URL | Base URL to connect to Microsoft Exchange Online. Enter: <kbd class="ph userinput">127.0.0.1</kbd> |
   | Active | Option to actively use the connection record. |
   | Domain | Domain that the action runs in. |
   | Override default port | Target port used by the connection. If blank, the system uses the default port. |
   | Use MID server | Option to use MID Servers for this connection. If the check box is selected, define the fields in the Advanced MID Server Configuration related list. |
   [Table 2. Connection form]

   {#create-conn-ms-exchange-online-mailbox-action__table_uny_rh5_rsb}
5. Click Submit.
{#create-conn-ms-exchange-online-mailbox-action__steps_tny_rh5_rsb}

### Result

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

*[\>]: and then


