--- title: Register an OAuth provider description: Use the information generated during the Microsoft Azure account configuration to register an application as an OAuth provider. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/platform-administration/register-oauth-cred-flow.html release: australia topic_type: task last_updated: "2026-03-12" reading_time_minutes: 1 breadcrumb: [Send email using client credential flow, Advanced email setup, Configure, Email Administration, Notifications, Configure core features, Administer the ServiceNow AI Platform] --- # Register an OAuth provider 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](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/oauth-api-script.md). **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://./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. 6. In the OAuth Entity Scopes related list, add scopes to match the permissions that you defined when you configured the application. 7. Select **Insert a new row**. 8. Enter `smtp` as the name and `https://outlook.office365.com/.default` as the OAuth scope. 9. Select and hold \(or right-click\) the form header and select **Save**. 10. In the OAuth Entity Profiles embedded list, select the profile created by default. 11. In the OAuth Entity Scopes embedded list, add a new row and select the **smtp** scope. 12. 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](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/create-email-account-smtp.md). **Parent Topic:**[Sending email using client credential flow](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/send-email-client-credential-flow.md)