Create an OAuth API script

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

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.

Generate a sys_id when you configure a JWT provider. For more information, see Configure a JWT provider.

Role required: admin

Procedure

  1. Navigate to All > System Definition > Script 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.

What to do next

Register an OAuth provider.

Parent Topic:Configure client credential flow for SMTP OAuth2 using certificate-based authentication

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