Set up OAuth connection with Microsoft Exchange Online
Register your Microsoft Exchange Online with ServiceNow instance for OAuth authorization.
Before you begin
Ensure that the application scope is set to Microsoft Exchange Online Spoke. Otherwise, do the following:
- Select the Application scope icon (
Application scope.\) on the top-right corner of your Employee Center homepage.
- In the drop- down, select the option consisting Application scope:.
- In the filter navigator, search and select Microsoft Exchange Online Spoke.
- Refresh the page.
Ensure that you performed the following steps:
- Configure Microsoft Azure in normal mode
- Configured resources Microsoft Exchange Online in the calendar. For more information, refer to https://learn.microsoft.com/en-us/exchange/recipients-in-exchange-online/manage-resource-mailboxes.
- Create a connection with Microsoft Exchange Online spoke
Role required: admin
Procedure
Navigate to All > System OAuth > Application Registry.
Select Microsoft Exchange Online_clientCredentials
On the form, fill in the fields with the specified details.
Field Description Name Unique name to identify the record, for example, Microsoft Exchange for Sync. Client ID Client ID created during the app authentication in Microsoft Azure. Client Secret The password you generated when creating the app in Microsoft Azure. Default Grant Type Grant type used to establish the token. Select Client Credentials. Authorization URL OAuth authorization code endpoint. Enter https://login.microsoftonline.com/<tenant_id>/oauth2/v2.0/authorize.Token URL OAuth server token endpoint. Enter https://login.microsoftonline.com/<tenant_id>/oauth2/v2.0/token.Redirect URL OAuth callback endpoint. The URL is automatically filled as https://<instance-name>.service-now.com/oauth_redirect.do.Right-click in the form header and select Save.
A system-generated OAuth entity profile is created and displayed in the OAuth Entity Profiles related list. For example,
Microsoft Exchange Online default_profile.
Result
The OAuth registration is added for Microsoft Exchange Online.
What to do next
Depending on whether you want to use the default alias or you want to create your own alias, do one of the following:
- To use default alias: Configure Connection and credential alias for Microsoft Exchange Online using the default credentials and connections.
- To create your own alias: Create your own connection and credential alias for Microsoft Exchange Online.
Parent Topic:Create a normal mode connection with Microsoft Exchange Online
Related topics
Configure Microsoft Azure in normal mode
Create a connection with Microsoft Exchange Online spoke
Create your own connection and credential alias for Microsoft Exchange Online