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

 Release :

    - zurich

ft:locale :

    - en-US

ft:publication_title :

    - Zurich Platform security

ft:clusterId :

    - psec

bundleId :

    - psec

workflow :

    - Platform


---

# OAuth inbound

# OAuth inbound {#ariaid-title1}

Release version: Zurich  
Updated July 31, 2025  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 4 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 inbound

OAuth inbound authentication in ServiceNow enables trusted external applications to securely access ServiceNow APIs.
This ensures that only authorized clients connect to your instance in a controlled and secure manner.
Configuration and management of OAuth integrations require roles such asoauthadmin,miadmin, oradmin.
Show full answer Show less  
This capability supports integration with third-party systems or other ServiceNow instances using multiple OAuth 2.0 grant types tailored for different scenarios.

## OAuth 2.0 Grant Types and Their Use Cases

* **Authorization Code Grant:** Best for applications accessing user data on behalf of users with their consent (e.g., web, mobile, desktop apps). It is the most secure, supports confidential and public clients, and involves exchanging an authorization code for an access token after user login and consent.
* **Client Credentials Grant:** Designed for back-end services or automated systems needing API access without user involvement. The client authenticates using its own credentials to receive an access token.
* **Third Party ID Token Flow:** Used for federated authentication where ServiceNow trusts tokens issued by external identity providers like Azure AD or Okta, enabling seamless single sign-on (SSO) and federated access.
* **JWT Bearer Grant:** Suitable for clients requiring secure access without user interaction or shared secrets. Clients present signed JSON Web Tokens (JWTs) to authenticate either on behalf of a user or themselves, enhancing security by avoiding shared secrets.
* **Resource Owner Password Credentials Grant:** Intended only for highly trusted internal apps in controlled environments where the app collects user credentials directly. This bypasses consent screens but exposes user credentials to the client, so it is recommended only for legacy or controlled scenarios.
* **Implicit Grants:** For legacy single-page or browser-based apps that cannot securely store client secrets and require lightweight, client-side flows. This flow provides access tokens directly in the URL but has security risks; ServiceNow recommends using Authorization Code Grant with PKCE instead.

## OAuth Scopes

OAuth scopes restrict access to specific REST APIs, ensuring that tokens grant permissions only to designated API areas. This helps enforce principle of least privilege for API access.  
OAuth Inbound authentication allows trusted external applications to securely access ServiceNow APIs, ensuring controlled and authorized connections.  
You must have one of the following roles to configure or manage OAuth integrations in the system:

* <kbd class="ph userinput">oauth_admin</kbd>
* <kbd class="ph userinput">mi_admin</kbd>
* <kbd class="ph userinput">admin</kbd>
{#oauth-inbound__ul_egf_vyt_xfc}

Inbound authentication enables external applications such as third-party systems or other ServiceNow® instances to connect securely to ServiceNow APIs. Inbound authentication confirms that only trusted clients can access your ServiceNow instance in a controlled and secure manner. ServiceNow supports several OAuth 2.0 grant types, each designed for specific integration scenarios. Use the following information to choose the grant type that best fits your use case:

## Authorization Code Grant {#oauth-inbound__section_slq_plt_xfc}

{#oauth-inbound__table_bs4_2jj_wfc__entry__2}

| Ideal usage scenario | Functionality |
|-|-|
| Applications that must access user data on behalf of user with the user's consent. Example: Web, mobile, or desktop applications acting on behalf of a user. | The user initiates the login process from the client application, which redirects them to a ServiceNow login page. After the user logs in and grants consent, the client application receives an authorization code. The client application exchanges the authorization code with the ServiceNow instance for an access token. Authorization code grant is the most secure and widely used workflow for user-facing integrations. It supports both confidential clients (with a client secret) and public clients using Proof Key for Code Exchange (PKCE). |
[ ]

{#oauth-inbound__table_bs4_2jj_wfc}

For more information about Authorization code grant workflow and configuration, see [Authorization code grant](https://www.servicenow.com/docs/3MYfqoCjMcfJ7dZXDxpBXg "The OAuth authorization code grant is a secure and widely used flow for web, mobile, or desktop apps that access user data with user consent. It supports both private clients (using a client secret), and public clients (using PKCE).")

## Client Credentials Grant {#oauth-inbound__section_qc5_tlt_xfc}

{#oauth-inbound__table_ybk_5jj_wfc__entry__2}

| Ideal Usage Scenario | Functionality |
|-|-|
| Client applications such as back-end services or automated system integrations that must access ServiceNow APIs without user involvement. | The client application authenticates directly with the ServiceNow instance using its own credentials (client ID and secret). Once authenticated, the application receives an access token to access the ServiceNow APIs. |
[ ]

{#oauth-inbound__table_ybk_5jj_wfc}

For more information about Client credentials grant workflow and configuration, see [Client credentials grant workflow](https://www.servicenow.com/docs/fUiXYr2HexlTxy~0q_gdHg "Authenticate a client application using a client credentials workflow. The client credentials grant workflow is used by back-end services or system integrations to access ServiceNow APIs without user involvement.").

## Third party ID Token Flow {#oauth-inbound__section_i1h_kwt_xfc}

{#oauth-inbound__table_dxy_mkj_wfc__entry__2}

| Ideal Usage Scenario | Functionality |
|-|-|
| Federated authentication scenarios where ServiceNow trusts identity or access tokens issued by external identity providers such as Azure AD or Okta. | The client application obtains an ID or access token from a trusted third-party identity provider, and includes it in the authorization header when making API requests to the ServiceNow instance. ServiceNow validates the token and, if trusted, grants access based on the identity it asserts. This enables seamless single sign-on (SSO) and federated authentication across systems. |
[ ]

{#oauth-inbound__table_dxy_mkj_wfc}

For more information about Third party token flow and configuration, see [Third party token workflow for user accounts](https://www.servicenow.com/docs/XlQ4o644HKNZwCqfaTmN5Q "This workflow can be used to integrate third-party identity providers (IdPs) with ServiceNow for secure API access. It allows client applications to obtain tokens directly from an IdP and use them to access ServiceNow APIs.") and [Third party token workflow for service accounts](https://www.servicenow.com/docs/65KtJXM2dJ9lld6Q6gnAWw "Create a service account in ServiceNow to represent the identity of a third-party application accessing APIs through a trusted identity provider (IdP). This account maps the token claims to a user record and manages access with roles and permissions.").

## JWT Bearer Grant {#oauth-inbound__section_wvj_wlt_xfc}

{#oauth-inbound__table_vn1_zjj_wfc__entry__2}

| Ideal Usage Scenario | Functionality |
|-|-|
| Client applications that need secure access to ServiceNow resources, either on behalf of a user or as themselves, without requiring user interaction or storing a shared secret. The client application creates a signed JSON Web Token (JWT) that includes identity-related claims, such as the user or system it represents. It then presents it to the ServiceNow instance to request for access token. | When acting on behalf of a user: :   The token represents a previously authenticated user. This enables secure, seamless access without prompting the user for credentials or consent again. The signed token asserts the user's identity, enabling ServiceNow to trust the request without requiring real-time user interaction. When acting as itself: :   The token identifies and authenticates the client application directly. Instead of using a shared secret, the client signs the token with a private key, making it a more secure alternative to the client credentials grant. |
[ ]

{#oauth-inbound__table_vn1_zjj_wfc}

For more information about JWT bearer grant workflow and configuration, see [JSON Web token bearer grant](https://www.servicenow.com/docs/vsJexKsVC0jJGaxBemvG7Q "Use this flow when a client application needs secure, unattended access to ServiceNow resources, either as itself or on behalf of a user.").

## Resource Owner Password Credentials Grant {#oauth-inbound__section_m45_3wt_xfc}

{#oauth-inbound__table_mkv_jkj_wfc__entry__2}

| Ideal Usage Scenario | Functionality |
|-|-|
| Highly trusted internal client applications in controlled environments where the app collects the user's credentials directly. | The client application collects the user's user name and password, and redirects them to the ServiceNow instance to obtain an access token. The workflow bypasses redirection and consent screens, but exposes user credentials to the client application. ServiceNow recommends that you implement the Resource owner password credentials grant only in legacy or controlled environments. |
[ ]

{#oauth-inbound__table_mkv_jkj_wfc}

For more information about Resource owner password credentials grant workflow and configuration, see [Resource owner password credential grant](https://www.servicenow.com/docs/nWeM0bean9TjY~UOc937YA "Configuring an OAuth Resource Owner Password Credential (ROPC) grant enables applications to authenticate users by directly using their credentials to obtain an access token.").

## Implicit Grants {#oauth-inbound__section_k23_fwt_xfc}

{#oauth-inbound__table_wmj_2lt_xfc__entry__2}

| Ideal Usage Scenario | Functionality |
|-|-|
| Legacy Single-page applications (SPAs) or browser-based apps that can't securely store a client secret, and require a lightweight, client-side authentication flow. | The user logs in through a browser. The client application receives the access token directly in the URL after login, bypassing the intermediate authorization code step. This flow was originally designed for public clients that run entirely in the browser, where securely storing secrets isn't possible. While it simplifies implementation, it exposes tokens in the browser, increasing the risk of interception. For stronger security, ServiceNow recommends implementing an authorization code grant with PKCE. |
[ ]

{#oauth-inbound__table_wmj_2lt_xfc}

For more information about Implicit grant workflow and configuration, see [OAuth implicit grants](https://www.servicenow.com/docs/BoSteox4EnhI_bSWGNjrKg "ServiceNow instances support the implicit grant of an access token.").

## OAuth Scopes {#oauth-inbound__section_cy4_xyq_cxb}

You can scope the OAuth authentication scope support for REST API. OAuth Scope provides access to only the particular REST APIs. For more information, see [REST API Auth Scope](https://www.servicenow.com/docs/chbyOHxjaxkyknilnGjJgQ "Use the REST API Auth Scope to provide access to a specific REST API").

