Enable ServiceNow to Guardrails Sync

Prerequisites

Associate Your ServiceNow Instance to Turbot Guardrails

Before you get started, if you have not already completed it, follow the Connect a ServiceNow Instance guide to associate your ServiceNow instance to Turbot Guardrails.

Turbot Guardrails Mods to Be Installed

Only the @turbot/servicenow mod needs to be installed in your Guardrails workspace. There are no additional mods required for this integration.

Set ServiceNow System Properties

ServiceNow Business Rules are automatically managed by Turbot Guardrails to set up event handlers to capture record changes (adds, updates, and deletes) within the tables in scope for the sync. As part of the Business Rules configuration, Turbot Guardrails stores its webhook URL in a ServiceNow System Properties object for an integrated retrieval mechanism from the Business Rules.

The following policies are associated:

The template provides flexibility for Guardrails to control additional system properties, but by default it is configured to manage the webhook URL. No changes to the template are necessary.

[!IMPORTANT] Make sure you set ServiceNow > Config > System Properties to Enforce: Configured so later steps are successful.

Sync ServiceNow Tables to Guardrails

Syncing data between systems is automated and continuous. Similar to how Guardrails captures cloud inventory and configs, any ServiceNow CMDB table can sync in real time as well.

Once you have your ServiceNow instance associated, enabling syncing of ServiceNow tables to your Guardrails workspace is simply setting one CMDB policy per applicable table.

There are three table policy types already pre-configured in the mod to get you started:

Each policy type aligns to a ServiceNow table and defines whether the sync is enabled and whether ServiceNow Business Rules are enabled for event-driven updates of table record changes. For example:

Example of Syncing the Application Table

To enable the sync for the Application table, set the following policies:

[!NOTE] Remember to set your ServiceNow > Config > System Properties policy to Enforce: Configured from the prerequisites section above.

[!NOTE] When setting the policies, select the resource scope at or above the level where your ServiceNow instance was imported. If you have set your instance at the Turbot level, set the policies at that level. If you imported the ServiceNow instance within a folder (e.g., Acme), set the policy at the Acme folder or higher (e.g., Turbot level).

Once the policies are set, you should now see the Applications brought into Guardrails under your ServiceNow instance.

Next Steps

  1. Additional context about the feature and a demo is in the announcement post ServiceNow + Guardrails: Context-aware cloud & security automation.
  2. Consider integrating Turbot Guardrails to ServiceNow. Follow the Enable Guardrails sync to ServiceNow guide to configure real-time syncing of cloud resources to your ServiceNow CMDB.

Troubleshooting

IssueSolution
No records appear after enabling syncVerify the CMDB policy is set to Enforce: Enabled at the correct scope. Check the discovery control status in the Controls tab.
Records are not updating in real timeVerify ServiceNow > Config > System Properties is Enforce: Configured and the Business Rule policy is Enforce: Configured. Check the Activity tab for webhook-related events.
Too many records importedUse the CMDB > Query policy to filter records with a ServiceNow encoded query string.
Further assistanceOpen a support ticket or join the Slack Community.