Create an OAuth API script
Create and duplicate an OAuth API script for application registry.
Before you begin
Generate a SHA -1 thumbprint. For more information see Generate a SHA-1 thumbprint.
Ensure you have the Email - Support for Email Processing by Microsoft Graph API plugin (com.glide.email.graph) installed.
Role required: admin
Procedure
-
Navigate to All > System Definition > Script Includes.
-
Select and open GraphCertificateOAuthTemplate.
-
Duplicate the script by changing the name in the Name field,select Insert and Stay from the record menu.
Note: The name should begin with OAuth.
The script is copied and created with a different name.
-
In the script, enter the JWT provider sys_id and SHA -1 thumbprint.
-
Select Update.
What to do next
Register an application as an OAuth provider.
Parent Topic:Configure an OAuth profile to use certificates for authentication with Microsoft Azure
---
title: Create an OAuth API script
description: Create and duplicate an OAuth API script for application registry.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/australia/platform-administration/oauth-api-script.html
release: australia
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [OAuth profile to use certificates, Read email using Microsoft Graph, Read or send emails using Microsoft Graph, Advanced email setup, Configure, Email Administration, Notifications, Configure core features, Administer the ServiceNow AI Platform]
---
# Create an OAuth API script
Create and duplicate an OAuth API script for application registry.
## Before you begin
Generate a SHA -1 thumbprint. For more information see [Generate a SHA-1 thumbprint](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/generate-thumbprint.md).
Ensure you have the Email - Support for Email Processing by Microsoft Graph API plugin \(com.glide.email.graph\) installed.
Role required: admin
## Procedure
1. Navigate to **All** > **System Definition** > **Script Includes**.
2. Select and open **GraphCertificateOAuthTemplate**.
3. Duplicate the script by changing the name in the **Name** field,select **Insert and Stay** from the record menu.
**Note:** The name should begin with **OAuth**.
The script is copied and created with a different name.
4. In the script, enter the JWT provider sys\_id and SHA -1 thumbprint.
5. Select **Update**.
## What to do next
[Register an application as an OAuth provider](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/microsoft-graph.md).
**Parent Topic:**[Configure an OAuth profile to use certificates for authentication with Microsoft Azure](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/configure-oauth-profile-using-certificates.md)
| title | Create an OAuth API script |
| description | Create and duplicate an OAuth API script for application registry. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/australia/platform-administration/oauth-api-script.html |
| release | australia |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | OAuth profile to use certificatesRead email using Microsoft GraphRead or send emails using Microsoft GraphAdvanced email setupConfigureEmail AdministrationNotificationsConfigure core featuresAdminister the ServiceNow AI Platform |