Skip to main content

Overview

OpenSRE connects to ServiceNow so the CLI and interactive shell can answer configuration questions about your instance — for example opensre integrations verify servicenow and shell questions like “Is ServiceNow configured?”. ServiceNow today is a config and verify integration. It does not register investigation query tools.

Prerequisites

  • A ServiceNow instance URL (a free developer instance works)
  • A user with read access to the sys_user table (used for the live connectivity check)

Setup

Option 1: Interactive CLI

Option 2: Onboarding wizard

Select ServiceNow under Incident & Comms and provide instance URL, username, and password. The wizard validates credentials with a one-row authenticated read of the sys_user table before saving.

Option 3: Environment variables

SERVICENOW_PASSWORD is also resolved from ~/.opensre/credentials.json when the environment variable is not set (the wizard stores it there).

Option 4: Persistent store

Credentials

Use a dedicated ServiceNow user with the minimum roles needed for a one-row read of sys_user (for example itil). Prefer the onboarding wizard so the password stays in ~/.opensre/credentials.json instead of .env.

Investigation tools

None. ServiceNow is used for configuration and verification only. The interactive shell can still answer “Is ServiceNow configured?” by running the verifier.

Verify

Verify is a live check: it validates the URL shape (HTTPS or loopback) and calls GET …/api/now/table/sys_user?sysparm_limit=1. Expected detail on success:
You can also ask the interactive shell:

Troubleshooting

Security

  • Use a dedicated ServiceNow user with minimum read roles.
  • Prefer the onboarding wizard so the password stays in ~/.opensre/credentials.json.
  • Rotate the password periodically and remove the integration when it is no longer needed.