ServiceNow create, update, and approval API permissions
Permissions required for ServiceNow create, update, and approval steps in Continuous Delivery pipelines
This topic describes the permissions required for ServiceNow create, update, and approval steps. Make sure that you have the permissions required for the ticket and getMetadata APIs in addition to the permissions listed in the following sections.
What you will learn from this topic
How to identify the permissions required to create ServiceNow tickets and update ServiceNow tickets
How to identify the permissions required for the ServiceNow Approval step
How to configure minimum permissions for read-only access
How to debug permission errors using the general debugging FAQs
Before you begin
ServiceNow connector: A Harness ServiceNow connector with credentials that map to a ServiceNow user or integration account. Go to Connect to ServiceNow to create a connector.
Harness ServiceNow app (templates): If you create or update tickets from form templates, install the Integration for Harness Software Delivery Platform app from the ServiceNow store. Go to Required ServiceNow integration app for Harness templates to review the install requirement.
API baseline: Grant the permissions required for the
ticketandgetMetadataAPIs, then add the step-specific roles in the sections below.
Create ServiceNow tickets
The permissions you need depend on whether you create the ticket without templates, from a form template, or from a standard template.
Create a ServiceNow ticket without templates
Harness uses the following API to create a ServiceNow ticket without templates:
The instance_url is the ServiceNow URL provided in the ServiceNow connector. The bearer token is the token generated by the credentials provided in ServiceNow.
Required permission: itil.
Create a ServiceNow ticket from form templates
Harness uses custom script APIs to create a ticket using form templates. Required permission: itil, x_harne_harness_ap.integration_user_role.
Create a ServiceNow ticket from standard templates
This path is supported only for change request ticket types.
Required permission: itil.
Required role: change_manager.
Harness uses the following API to create a ServiceNow ticket from templates:
Update ServiceNow tickets
The permissions you need depend on whether you update the ticket with or without templates.
Update a ServiceNow ticket without templates
Harness uses the following API to update a ServiceNow ticket without templates:
The instance_url is the ServiceNow URL provided in the ServiceNow connector. The bearer token is the token generated by the credentials provided in ServiceNow.
Required permission: itil.
Update a ServiceNow ticket from templates
Harness uses custom script APIs to update a ticket using form templates. Required permission: itil_admin, x_harne_harness_ap.integration_user_role.
ServiceNow Approval step
Harness uses the following API to get the fields of the ServiceNow ticket for which the approval or rejection criteria is specified in the Approval step.
The instance_url is the ServiceNow URL provided in the ServiceNow connector. The bearer token is the token generated by the credentials provided in ServiceNow.
Required permission: itil.
Minimum permissions for read-only access to ServiceNow tickets
If your use case only requires reading tickets from ServiceNow to fetch ticket status for visibility without performing any create, update, or modify operations, your service account needs the following minimum permission:
Required role: itil
The itil role provides read-only access to ITSM tables and ticket data, including incident, change, and problem tables, without any write permissions. Use this configuration when you only need to monitor ticket status and do not want to perform write actions in ServiceNow.
General debugging FAQs
The following questions cover common permission and access errors in the ServiceNow steps.
Next steps
Create ServiceNow tickets in CD stages: Create ServiceNow tickets from a pipeline step.
Update ServiceNow tickets in CD stages: Update ServiceNow tickets from a pipeline step.
Adding ServiceNow approval steps and stages: Add ServiceNow approvals to your pipeline.
Connect to ServiceNow: Create the ServiceNow connector used by these steps.
Last updated
Was this helpful?
