Skip to main content

Connect to ServiceNow

You can connect Harness to ServiceNow using a Harness ServiceNow connector. This connector allows you to approve and reject pipeline steps.

Important notes

  • Your ServiceNow account should ideally have the admin role. If this is not possible, it should have at least the itil_admin or itil role to create and modify tickets.
  • Your account should also have the import_admin or import_transformer role to manage import set transform maps. For details, go to ServiceNow's Base System Roles documentation.
  • Your ServiceNow REST API account must have permission to view tickets.

Minimum permissions for read-only access

If your use case only requires reading tickets from ServiceNow (for example, to fetch ticket status for visibility without performing create, update, or modify operations), your service account needs the following minimum permission:

  • Role: itil - Provides read-only access to ITSM tables and ticket data, including incident, change, and problem tables, without any write permissions.

This read-only configuration is ideal when you only need to monitor ticket status and do not want to perform any write actions in ServiceNow.

Add a ServiceNow connector

This topic assumes you have a Harness Project set up. If not, go to Create Organizations and Projects.

You can add a connector from any module in your project in project setup, or in your organization, or account resources.

This topic shows you how to add a ServiceNow connector to your project.

  1. In Project Setup, select Connectors.

  2. Select New Connector, and then select ServiceNow. The ServiceNow connector settings appear.

  3. Enter Name for this connector.

    You can choose to update the Id or let it be the same as your ServiceNow connector's name. For more information, go to Entity Identifier Reference.

  4. Enter a Description and Tags for your connector.

  5. Select Continue.

Add details for the ServiceNow connector

  1. In ServiceNow URL, enter the base URL by which your users will access ServiceNow. For example: https://example.service-now.com.

  2. In Authentication, select one of the following:

    • Username and Password
    • ADFS Client Credentials with Certificate
    • OIDC Refresh token

To use basic authentication (username and password), do the following:

  1. Enter Username.
  2. In Password, add a password.
  3. Select Continue.

Set up delegates

Select the Harness Delegate(s) to use when making a connection to ServiceNow using this connector.

Select Save and Continue.

Harness tests the connection.

Select Finish.

The ServiceNow connector is listed in Connectors.