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 agent 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: Environment variables

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

Option 3: 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 opensre integrations setup servicenow so the password stays in ~/.opensre/credentials.json instead of .env.

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 opensre integrations setup servicenow so the password stays in ~/.opensre/credentials.json.
  • Rotate the password periodically and remove the integration when it is no longer needed.