Discover ServiceNow Custom Tables

Discovering ServiceNow Custom Tables

In this guide, you will:

Turbot Guardrails can discover and manage records from any specified ServiceNow table, extending visibility beyond the pre-configured Application, Cost Center, and User tables. This allows you to bring data from your custom or other standard ServiceNow tables into Guardrails as ServiceNow > Custom > Record resources.

Prerequisites

Enabling Custom Table Discovery

To enable discovery of records from ServiceNow custom tables, configure the following policies:

ServiceNow > Custom > Table > CMDB

ServiceNow > Custom > Table > CMDB > Tables

[!IMPORTANT] Removing a table name from this list will result in the deletion of the corresponding ServiceNow > Custom > Table resource and all its child ServiceNow > Custom > Record resources from the Guardrails CMDB.

Set Optional Policies

The following two policies allow you to control which records are discovered and how they are displayed in Guardrails:

ServiceNow > Custom > Record > CMDB > Query

ServiceNow > Custom > Record > CMDB > Title

(Optional) Configure Real-time Business Rules

To enable real-time updates when records change in ServiceNow, you can configure Business Rules. This allows Guardrails to automatically sync changes as they happen in ServiceNow.

Before configuring Business Rules, ensure you have:

  1. Set ServiceNow > Config > System Properties to Enforce: Configured as described in the ServiceNow sync prerequisites.
  2. Administrator access to create Business Rules in ServiceNow

ServiceNow > Custom > Table > Business Rule

Configures ServiceNow Business Rules for real-time event handling of record changes (new, updated, deleted) in the discovered tables.

ServiceNow > Custom > Table > Business Rule > Name

Example: Discovering the Server Table

To discover records from the standard ServiceNow Server table cmdb_ci_server, follow these steps:

  1. Set ServiceNow > Custom > Table > CMDB to Enforce: Enabled.
  2. Set ServiceNow > Custom > Table > CMDB > Tables with yaml value as - cmdb_ci_server

ServiceNow Discovery Policy Settings

  1. (Optional) To only discover active servers, set ServiceNow > Custom > Record > CMDB > Query to active=true (or the relevant field/value for server status).
  2. (Optional) To enable real-time updates, set ServiceNow > Custom > Table > Business Rule to Enforce: Configured.

ServiceNow Business Rule Setting

Guardrails will now discover records from cmdb_ci_server. These records will appear in your Guardrails inventory under the ServiceNow instance resource as ServiceNow > Custom > Record resources.

Next Steps

Please see the following resources to learn more about ServiceNow integrations:

Troubleshooting

Issue Description Guide
Common errors Common issues that may prevent controls from running include network connectivity problems, permission issues, and API rate limits. These can cause controls to enter an error state. Refer to Common Troubleshooting for detailed resolution steps.
Further Assistance If you encounter further issues with Calculated Policies, please open a ticket with us and attach the relevant information to assist you more efficiently. Open Support Ticket
Community Support We want to hear from you! Join our Slack Community #guardrails channel to ask questions and share feedback. Join Slack Community