Skip to main content
OpenSRE connects to ServiceNow so the CLI and the interactive shell can answer configuration questions about your instance — opensre integrations verify servicenow and shell questions like “Is ServiceNow configured?” return a real result instead of suggesting commands to run.

Prerequisites

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

Setup

Option 1: Onboarding wizard

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

Option 2: Legacy CLI

Option 3: Environment variables

SERVICENOW_PASSWORD is also resolved from the OS keyring when the environment variable is not set (the wizard stores it there).

Option 4: Persistent store

Add to ~/.opensre/integrations.json:

Verify

Expected output on success:
This is a configuration-presence check (instance_url, username, and password are all set) rather than a live API call. The live connectivity check runs during onboarding wizard validation. You can also ask the interactive shell directly:
The shell runs the same verifier and answers from its result.

Troubleshooting

Security best practices

  • Use a dedicated ServiceNow user for OpenSRE with the minimum roles it needs (read access only).
  • Prefer the onboarding wizard: it keeps the password in the OS keyring instead of .env.
  • Rotate the password periodically and remove the integration when no longer needed.