Register an OAuth provider

task brazil Updated Sep 10, 2026 1 min read register-oauth-cred-flow.md
Raw file servicenow.com

Use the information generated during the Microsoft Azure account configuration to register an application as an OAuth provider.

Before you begin

Role required: admin

Procedure

  1. Navigate to All > System OAuth > Application Registry.

  2. Select New.

  3. On the What kind of OAuth application screen, select Connect to a third-party OAuth Provider.

  4. On the form, fill in the fields.

Field

Description

Name

Name to uniquely identify the record.

Client ID

Application ID of the application that you created in Microsoft Azure.

Client Secret

The client secret that you generated when you created the application in Microsoft Azure.Note: When using certificates, the Client Secret is a dummy value.

OAuth API Script

OAuth API script name. For more information see, OAuth API Script. Note: This field is required only while using certificates.

Default Grant type

Client Credentials

Token URL

Token URL that you copied after configuring the Microsoft Azure account.

Redirect URL

https://<instance>./oauth_redirect.do Note: This URL should be the same as the URL in Microsoft Azure.

5. Select and hold \(or right-click\) the form header and select **Save**.
An OAuth Entity Profile record is created.
  1. In the OAuth Entity Scopes related list, add scopes to match the permissions that you defined when you configured the application.

  2. Select Insert a new row.

  3. Enter smtp as the name and https://outlook.office365.com/.default as the OAuth scope.

  4. Select and hold (or right-click) the form header and select Save.

  5. In the OAuth Entity Profiles embedded list, select the profile created by default.

  6. In the OAuth Entity Scopes embedded list, add a new row and select the smtp scope.

  7. Select Update.

What to do next

Use the OAuth profile to create an email account with SMTP OAuth2.0. For more information, see Create an email account with SMTP OAuth2.0.

Parent Topic:Sending email using client credential flow

Search documentation
Search document titles and file paths on the brazil branch