---
sourceDocument: Xanadu ServiceNow AI Platform Administration
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/platform-administration

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu ServiceNow AI Platform Administration

ft:clusterId :

    - platadm

bundleId :

    - platadm

workflow :

    - Platform


---

# Create an OAuth API script

# Create an OAuth API script {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Create and duplicate an OAuth API script for application registry.

## Before you begin

Generate an SHA-1 thumbprint. For more information, see [Generate a SHA-1 thumbprint](https://servicenow-prod.fluidtopics.net/Ie0HIoKHOfg1RsVp91l7rQ "Generate a SHA-1 thumbprint using the JWT provider's sys_id and JKS certificate's sys_id and certificate's alias to be added to the GraphCertificateOAuthTemplate script.").

Generate a sys_id when you configure a JWT provider. For more information, see [Configure a JWT provider](https://servicenow-prod.fluidtopics.net/q_WjlPHD9~zLbB~w~M1cpg "Configure a JWT provider on the ServiceNow AI Platform to configure an OAuth application profile to authenticate using certificates.").

Role required: admin

## Procedure

1. Navigate to AllSystem DefinitionScript Includes.
2. Select and open EmailCertificateOAuthTemplate.
3. Duplicate the script by changing the name in the Name field, select Insert and Stay from the record menu.  
   Note:  
   The name must begin with OAuth to create an OAuth script.  
   The script is copied and created with a different name.
4. In the copied script, enter the JWT provider sys_id and SHA-1 thumbprint.
5. Select Update.
{#create-oauth-api-script-cred-flow__steps_rr2_hrl_lzb}

## What to do next

[Register an OAuth Provider](https://servicenow-prod.fluidtopics.net/iFPTlWEjtLvjtZ091xg2Rw "Use the information generated during the Microsoft Azure account configuration to register an application as an OAuth provider.").

*[\>]: and then


