---
sourceDocument: Australia Platform security
sourceDocumentLink: https://www.servicenow.com/docs/r/platform-security

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia Platform security

ft:clusterId :

    - psec

bundleId :

    - psec

workflow :

    - Platform


---

# OAuth 2.0 credentials

# OAuth 2.0 credentials {#ariaid-title1}

* Release version: Australia
* 
* Updated August 11, 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 3 minutes to read

Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of OAuth 2.0 credentials

OAuth 2.0 credentials in ServiceNow enable secure access to user accounts on HTTP services by obtaining OAuth tokens for authentication.
These credentials are configured in the OAuth 2.0 Credentials form, allowing ServiceNow to integrate with third-party OAuth providers or internal OAuth servers.
Show full answer Show less  

## Key Features

* **Name and Activation:** Assign a unique, descriptive name and specify if the credential is active.
* **OAuth Entity Profile:** Combines a grant type (such as Client Credentials, Authorization Code, or Resource Owner Password Credentials) with at least one scope to define the OAuth flow.
* **Connect to Auth Server via MID Server:** Enables secure communication between the ServiceNow instance and on-premise or cloud OAuth servers through a MID Server, useful when the OAuth server is behind a firewall.
* **Applies to:** Specify whether the credential applies to all MID Servers or selected ones, ensuring those MID Servers have the necessary status (Up), validation (Yes), and REST or ALL capabilities for token requests.
* **Order:** Defines the sequence in which credentials are tried during authentication, important for managing multiple credentials or handling login lockouts.
* **Credential Alias:** Allows linking the OAuth 2.0 credential to a credential alias for easier identification or reuse.
* **Integration Type:** Specifies whether the OAuth token is system-wide or user-specific:
  * **System:** Uses requester profile-based tokens supporting SAML and JWT authentication.
  * **Personal:** User-specific tokens requiring the MID Server user to have the `oauthadmin` role. Supports Authorization Code and Resource Owner Password Credentials grant types.

## Important Considerations

* When using the MID Server option, ensure the selected MID Servers can communicate with the OAuth Auth server and meet the required status and capabilities.
* User-related information requires Personal integration type tokens and selecting the "Run As" property as "User who initiates session" in Flows to use session user tokens.

## Practical Use for ServiceNow Customers

This configuration allows ServiceNow customers to securely authenticate and integrate with OAuth 2.0-enabled services, whether internal or third-party, supporting both system-wide and user-specific access scenarios. Leveraging MID Servers enables secure token exchanges even with OAuth servers behind firewalls. Properly ordering credentials and selecting the right integration type ensures efficient and secure authentication flows aligned with organizational access requirements.  
OAuth 2.0 credentials enable ServiceNow to obtain access to user accounts on an HTTP
service.
These fields are available in the Credentials form for OAuth 2.0.{#oauth-2-credentials__table_ezk_y3d_hbb__entry__2}

| Field | Input value |
|-|-|
| Name | Enter a unique and descriptive name for this credential. For example, you might call it OAuth2 credential. |
| Active | Specify whether this credential is active. |
| OAuth Entity Profile | An OAuth profile is a combination of a grant type and at least one scope. |
| Connect to Auth Server via MID Server | Connects your ServiceNow instance to an on-premise OAuth server that resides behind a firewall through a MID Server. It can also connect your ServiceNow instance to a cloud-based OAuth server through a MID server. When this option is enabled, the request for an OAuth token is sent through the MID Server. Important: * The option appears when the value in the Grant type field in the OAuth Entity Profile is set to eitherClient Credentials, Authorization Code, or Resource Owner Password Credentials. To learn how to set an OAuth entity profile for a third-party OAuth provider, see [Connect to a third-party OAuth provider](https://www.servicenow.com/docs/L8gLZMbY6s_6lBu9dzA2gQ "Configure how the client ID and secret are sent to your OAuth provider."). * If you select the Connect to Auth Server via MID Server checkbox, you must identify the required MID Server or MID Servers from the Applies to list. * MID Server user needs the <kbd class="ph userinput">oauth_admin</kbd> role to Set up OAuth integration via MID Server. {#oauth-2-credentials__ul_a3s_gvc_lzb} |
| Applies to | Specify if the credential record is applicable for all MID Servers, or a specific MID Server. If specific, add the MID servers as necessary. Important: Ensure that you are aware of these considerations if you have selected the Connect to Auth Server via MID Server check box. * Ensure that all the MID Servers selected in Applies to can communicate with the Auth server. This is required to execute the token request against the Token URL mentioned in the OAuth provider record (that is linked to the OAuth entity profile specified in the OAuth 2.0 credential record). * Ensure that there is at least one MID Server (in the MID Servers selected in Applies to) with these configurations: * The value of the Status field is Up. * The value of the Validated field is Yes. * The capability of the MID Server is set to REST or ALL. To learn how to configure the MID server, see [https://www.servicenow.com/docs/access?context=configure-capabilities\&version=australia\&pubname=australia-integrate-applications\&ft:locale=en-US](https://www.servicenow.com/docs/access?context=configure-capabilities&version=australia&pubname=australia-integrate-applications&ft:locale=en-US). To learn more about these statuses, see [MID Server dashboard](https://www.servicenow.com/docs/access?context=c_MIDServerDashboard&version=australia&pubname=australia-servicenow-platform&ft:locale=en-US). {#oauth-2-credentials__ul_jpk_3t5_c1c} {#oauth-2-credentials__ul_q2t_ht5_c1c} |
| Order | Order (sequence) in which Discovery tries this credential as it attempts to log on to devices. The smaller the number, the higher in the list this credential appears. Establish credential order when using large numbers of credentials or when security locks out users after three failed login attempts. If all the credentials have the same order number (or none), the instance tries the credentials in a random order. |
| Credential alias | Specify the credential alias that you want to tie to the OAuth 2.0 credential. |
| Integration Type | Indicates the integration type for the credential. Invoke an API of a third-party with an OAuth request that generates an OAuth token that is system or user specific. Following are the integration types: * System: Pull the token information based on the requester profile. The System integration type supports the following authentication mechanisms: 1. Security Assertion Markup Language (SAML) 2. JSON Web Token (JWT) {#oauth-2-credentials__ol_y5d_g4k_3fc} * Personal: Pull the token information that is user-specific. The MID Server user must have the `oauth_admin` role. The Personal and System integration types support the following grant types: 1. Authorization Code 2. Resource Owner Password Credentials {#oauth-2-credentials__ol_p3v_b4k_3fc} {#oauth-2-credentials__ul_hkw_xgj_ltb} If this Personal is selected on the OAuth Requestor Profile page, an additional flag called as Personal is displayed. Note: * Any information that is related to a user can only be accessed with user-specific OAuth tokens with the Integration Type as Personal. * To use the session user-related token, you have to select the Run As filed in the Flow properties as User who initiates session. {#oauth-2-credentials__ul_mxp_k3j_ltb} |
[Table 1. OAuth 2.0 credentials form]

{#oauth-2-credentials__table_ezk_y3d_hbb}

