Synchronize with ServiceNow
The ServiceNow Data Sync allows xMatters to connect directly to the ServiceNow API to import user and role data. Administrators configure the sync by mapping ServiceNow roles to xMatters license types and defining how user properties should be handled. Default values can be set for missing or invalid data, and once the configuration is complete, the sync runs manually and generates a report showing processed records and any issues.
On the Admin menu, under Configuration, select Data Sync.
The Data Sync page is comprised of two tabs; the Sync Configurations tab displays all available configurations and the History tab shows you a report of all the syncs run for your data retention period.
Sync Configurations
On the Sync Configurations tab you can:
- Click the name of a sync to open its configuration settings page.
- See the status of syncs that are currently running.
- See the status and time stamp of completed syncs.
- Use the status link to the summary report of the completed sync.
On the History tab, you can:
- View status of syncs that are currently running.
- Filter by date, configuration, or status.
- Click the name of the sync to open its configuration settings page.
- Click the status link to see a detailed report of the sync.
When you click the status link you'll see a detailed report containing the sync results, as well as any errors or warning that occurred during the sync.
From this page, you can go to the sync configuration page or export the report. If you choose to export the report, you can select what to export as a .csv file:
- Export Sync Files: Exports only the user data of the sync.
- Export Error Report: Exports only the error and warning messages.
- Export Report and Sync Files: Exports both the user data and the error report.
Create and manage sync configurations
The following sections describe how to create, manage, and run a sync configuration.
To create a new ServiceNow data configuration:
- Go to Admin > Data Sync.
- Click Add Sync Configuration.
- On the Add Sync Configuration window, fill in the following fields:
- Name: A unique name for your sync configuration.
- Data Source: This field is not editable as the only available data sync is with ServiceNow.
- Authentication Method: This field is not editable as ServiceNow only accepts OAuth 2.0.
- Base URL: The base URL of the ServiceNow server to synchronize with.
- Username: Username of the authenticating user who has permission to execute requests in ServiceNow.
- Password: Password of the authenticating user.
- Client ID: Client ID of the authenticating user who has permission to execute requests in ServiceNow.
- Client Secret: Secret for the authenticating Client ID.
- Optional: Copy the redirect URL if you need to configure the connection between xMatters and ServiceNow. Once the you authorize xMatters, ServiceNow sends you to the redirect URL with an authorization code.
- Click Save.
The configuration is created and you're redirected to the configuration settings page. The new configuration is added as a tile to the Sync Configurations Sync Configurations page.
Once you have created a new sync configuration, you can set which ServiceNow roles you want to map to each license type in xMatters.
To add roles to a license type;
- In the User Sync Rules section, expand the License Type drop-down menu and select the license type. Available options are:
- Full User
- Stakeholder User
- Expand the Source Role drop-down menu and select the ServiceNow roles to map to the license type.
- An xMatters license type can contain multiple ServiceNow roles, but a role can only be mapped to one license type. If a user matches criteria for both license types, the Full User license type takes precedence.
- To add another roles to another license type, click Add.
Now that the license types are mapped, you can map the user properties.
- In the User Properties Mapping table, map source properties from ServiceNow to their corresponding xMatters properties.
- xMatters Property: Name of the property in xMatters.
- Source Property: Name of the property in ServiceNow. If the property has a default value, you can use that by selecting 'Use Default Value' from the drop-down menu.
- Default Value: The default value for the property, if there is one.
- Sync Action: What action to take for each property when a subsequent sync is run. During the initial sync the Sync Action setting is ignored. Available values are:
- Overwrite existing: Overwrite the existing property in xMatters with the property value from ServiceNow.
- Update if empty: Only update the field in xMatters if it was previously empty.
- Ignore (skip): Make no changes in xMatters.
- To map properties other than the listed default properties, click Add Mapping.
- Save the sync, or continue to the next configuration section.
To include devices in the data sync:
- Go to the Device Sync Rules section and enable the 'Assign user devices' toggle.

- In the Device Properties Mapping table, map source properties from ServiceNow to their corresponding xMatters properties.
- xMatters Device: Select the xMatters device type from the drop-down menu.
- Source Property: Select the ServiceNow property from the drop-down menu.
- Sync Action: What action to take for each property when a subsequent sync is run. During the initial sync the Sync Action setting is ignored. Available values are:
- Overwrite existing: Overwrite the existing property in xMatters with the property value from ServiceNow.
- Ignore (skip): Make no changes in xMatters.
- To map additional device types, click Add Mapping.
- Save the sync, or continue to the next configuration section.
Each user in xMatters must have at least one role assigned to their profile. The role is added when a user profile is created during the initial sync. The default role is 'Standard User', but you can select multiple values by either typing the role names, or selecting them from the Default Role drop-down list.
Supervisors are added when a user record is created during the initial sync with xMatters. You can assign one or more supervisors for each user. To include supervisors as part of the data sync:
- Go to the Supervisor Sync Rules section and enable the 'Assign user supervisors' toggle.

- In the User Supervisor field, search for supervisor names by typing at least two letters, or select one or more supervisors from the drop-down list.
- Only people who have permission to supervise users are displayed in the list.
- Save the sync, or continue to the next configuration section.
After a configuration is saved, click Sync Now to run the data sync.
Only one sync can be run at a time for each configuration and it can take several minutes for a sync to connect, then to complete. Once you click 'Sync Now', do not navigate away from the page, or click the 'Sync Now' button again.
When the sync is finished, you can click the Status link to view a summary report.
You can make changes to an existing configuration if required. It is important to note that when configuration settings change, there may be mapping errors that require correction.
To edit the sync configuration:
- From the Sync Configurations page, click the name of the sync you'd like to modify.
- When the configuration opens, go to the Options menu and select Edit Configuration.

- On the Edit Sync Configurations window, make the required changes.
- Click Save.
Once applied, any properties not compatible with the new configuration settings will be highlighted. To run a sync using the new configuration you must clear all mapping errors and save the configuration.
If a sync configuration is no longer required, you can delete it to ensure it's not accidentally run. Deleting a sync removes the connection between xMatters and ServiceNow, but it does not delete any data brought into xMatters from previously run syncs.
To delete the sync configuration:
- From the Sync Configurations page, click the name of the sync you'd like to delete.
- When the data sync opens, go to the Options menu and select Delete.

- Confirm the deletion.
The sync is deleted from the Sync Configurations page.