This feature allows the system to raise a ticket and assign it to the LDI Support team when an incident occurs. It includes tasks such as configuring connection to ServiceNow portal, creating rules that includes sensor management, etc.
Communication between servicenow-integration-service and ServiceNow API occurs using basic authentication. Thus, ServiceNow user credentials are stored in the servicenow-integration-service database and provided each time the API is called.
There is a possibility to use a more secure mechanism - OAuth authentication, when a limited-time token is obtained from OAuth API by credentials and is used in the API calls.
Follow this procedure to support the OAuth authentication:
- Log in to the ServiceNow portal.
- Fill-in Instance URL.
- Enter the values for these fields:
- User ID or Admin Credentials
- Password
- Client ID
- Client Secret
- The Organization Admin must create a user in ServiceNow for User ID and Password and a client for Client ID and Client Secret.
- The roles must be specified: Admin, Asset, App_service_user, etc. With this set of roles, there is an issue with setting high impact and urgency through the API. When High is requested, Medium is set in the incident.
- Click Connect to ServiceNow. All the filled-in credentials are stores in the database afterward. This way it’s possible to receive tokens whenever it’s needed.

This option requires saving user and password, but this user can be controlled at ServiceNow side.

You must have an LDI Admin access privileges to configure and create a rule.
- Log in to LDI portal.
- Select Configuration -> Insights & Automations -> ServiceNow Incident Rules. The SNOW Incident Rules page appears.
- Click the Config Status drop-down on top-right in the page.
- Select Edit Configuration. The Configure Connection to ServiceNow page appears.
- In the Add Instance Credentials section, enter the ServiceNow Instance URL, ServiceNow User ID, and ServiceNow Password.
- In the Add Client Credentials section, enter the ServiceNow Client ID and ServiceNow Client Secret.
- All are mandatory fields.
- Click Connect ServiceNow.
Create a ServiceNow Incident Rule

You need to configure ServiceNow in LDI before creating an incident rule. Refer to Integrate ServiceNow Into LDI Tool for more details.
The following table displays the fields in the SNOW Incident Rules page: