Connecting to ServiceNow
ServiceNow is a cloud-based platform that supports enterprise-wide service management across departments such as IT, HR, facilities, customer service, and more. Integrating ServiceNow with watsonx Orchestrate enables seamless automation of service workflows, incident tracking, and data synchronization across systems.
To enable this integration, establish a secure connection between both platforms. See Managing connections for more details.
Authentication methods
ServiceNow supports the following authentication types:
-
OAuth2 Authorization Code (default)
-
OAuth2 Password
-
Bearer Token
-
OAuth2 Token Exchange (requires SSO)
-
OAuth2 On Behalf Of Flow (OBO) (requires SSO)
Select the authentication type that matches your ServiceNow configuration and organizational requirements.
By default, Single sign-on (SSO) is disabled. To use OAuth2 Token Exchange or OAuth2 On Behalf Of Flow authentication types, enable SSO. Refer to Configuring single sign-on for applications.
Connecting to ServiceNow
To connect watsonx Orchestrate to ServiceNow:
-
From the main menu, go to Manage > Security.
Important:In IBM Cloud and the on-premises environment, use the Manage > Connections navigation path to access connections.
-
Click the Connections tab and search for the corresponding app name or the ServiceNow connection ID.
-
Click the edit icon
to configure the connection. -
Select the environment where you want to create the connection:
-
Draft: for testing and development
-
Live: for production use
-
-
From the Authentication Type dropdown, select the authentication type that matches your ServiceNow configuration:
-
OAuth2 Authorization Code (default)
-
OAuth2 Password
-
Bearer Token
-
OAuth2 Token Exchange (appears only when SSO is enabled)
-
OAuth2 On Behalf Of Flow (OBO) (appears only when SSO is enabled)
-
-
Provide the required values based on your selected authentication type. Refer to the Authentication type configuration fields section for details.
-
Choose the appropriate credential type:
-
Member credentials: Each user accesses the application with their personal credential
-
Team credentials: All users can access the application with their team credential
-
-
Save the connection and test it to confirm that ServiceNow is successfully connected.
Note: The icon indicates that the connection was successfully established.
Authentication type configuration fields
The following tables describe the configuration fields for each authentication type.
OAuth2 Authorization Code
OAuth2 Authorization Code is the default authentication type for ServiceNow connections. See Authentication types overview.
|
Field |
Required |
Description |
|---|---|---|
|
|
Yes |
The base URL of your ServiceNow instance |
|
|
Yes |
The URL where users are redirected to log in and authorize access |
|
|
Yes |
The endpoint used to exchange the authorization code for an access token |
|
|
Yes |
The client ID of your ServiceNow app |
|
|
Yes |
The client secret associated with your app in ServiceNow |
OAuth2 Password
OAuth2 Password authentication is suitable for trusted applications that directly handle user credentials.
|
Field |
Required |
Description |
|---|---|---|
|
|
Yes |
The base URL of your ServiceNow instance |
|
|
Yes |
The endpoint used to exchange credentials for an access token |
|
|
Yes |
The client ID of your ServiceNow app |
|
|
Yes |
The client secret associated with your app in ServiceNow |
|
|
Yes |
Your ServiceNow username |
|
|
Yes |
Your ServiceNow password |
|
|
Yes |
The permissions or resources to which access is allowed |
Bearer Token
Bearer Token authentication uses a token for authentication.
|
Field |
Required |
Description |
|---|---|---|
|
|
Yes |
The base URL of your ServiceNow instance |
|
|
Yes |
Your ServiceNow bearer token |
OAuth2 Token Exchange
OAuth2 Token Exchange enables secure token delegation across services. This authentication type requires SSO to be enabled. For more information, see OAuth2 Token Exchange.
Prerequisites:
-
SSO must be enabled for your application
|
Field |
Required |
Description |
|---|---|---|
|
|
Yes |
The endpoint used to exchange tokens |
|
|
Yes |
The client ID of your ServiceNow app |
|
|
Yes |
Pre-filled value: |
|
|
No |
The base URL of your ServiceNow instance |
|
Token request field |
No |
Click Add field to include additional parameters required by your authorization server |
OAuth2 On Behalf Of Flow (OBO)
OAuth2 On Behalf Of Flow (OBO) allows an application to act on behalf of a user when calling another service. This authentication type requires SSO to be enabled. For more information, see OAuth2 On Behalf Of Flow.
Prerequisites:
-
SSO must be enabled for your application
Application configuration
|
Field |
Required |
Description |
|---|---|---|
|
|
Yes |
The endpoint used to exchange tokens |
|
|
Yes |
The client ID of your ServiceNow application |
|
|
Yes |
Pre-filled value: |
|
|
No |
The base URL of your ServiceNow instance |
|
Token request field |
No |
Click Add field to include more parameters required by your authorization server |
Additional details for SSO configuration
|
Field |
Required |
Description |
|---|---|---|
|
|
Yes |
The identity provider URL for SSO authentication |
|
|
Yes |
Pre-filled value: |
|
|
Yes |
The client ID for the identity provider |
|
|
Yes |
The client secret for the identity provider |
|
|
No |
The permissions or resources to which access is allowed |
|
|
No |
Pre-filled value: |
|
|
No |
Pre-filled value: |
|
Token request field |
No |
Click Add field to include additional parameters required by your authorization server |
Obtaining configuration values
To obtain the configuration values for your ServiceNow connection, refer to the ServiceNow API documentation.
What to do next
Now that your app connection is live, you can start using it in watsonx Orchestrate.
-
Run an agent in Orchestrate Chat to complete tasks using natural language. See Using Orchestrate Chat for more details.
-
Use relevant agents and tools to perform app-specific actions. See Prebuilt agents and Prebuilt tools for more details.