ServiceNow ITSM

This article describes how to connect Tableau to ServiceNow IT Service Management (ITSM) data and set up the data source.

Warning: The ServiceNow ITSM connector is deprecated as of the 2023.1 release. You can use the connector until it’s been retired. Once the connector is retired, it’s removed from the Tableau user interface and any data sources using the connector will no longer work as expected. Typically, a deprecated connector will be retired 1–2 releases after it is deprecated. You can use the ServiceNow connector from the Tableau Exchange instead.

Note: For the most up-do-date information on this connector, see the ServiceNow ITSM help topic for the current version of Tableau.

Before you begin

Before you begin, gather this connection information:

  • ServiceNow instance you want to connect to: cloud-based or on premises
  • Username and password for a local ServiceNow account

Connection requirements

To connect Tableau to ServiceNow, make sure that the following requirements are met:

  • Use a local ServiceNow account. The ServiceNow API doesn’t support single sign-on (SSO), so the Tableau connector can only authenticate using a local ServiceNow account. For more information, see Use a local ServiceNow account.
  • Have the correct permissions. Access control lists (ACLs) must provide the user the permission required to access the data. For more information see Troubleshoot data access.
  • For on-premises, CORS is configured. Before you connect to an on-premises instance of ServiceNow, you must configure CORS for Tableau in ServiceNow. For more information, see Configure CORS for Tableau on ServiceNow(Link opens in a new window) in Tableau Community.
  • For cloud instances, proxy connection is required. The native ServiceNow connector routes through "servicenow-auth-proxy.connectors.tableau.com" instead of directly from the local user's IP. The proxy is necessary due to the way OAuth 2.0 is designed. It stores the unique client ID and secret required by OAuth to permit Tableau Desktop access to ServiceNow.

    Note: Don't apply IP address access controls in ServiceNow when using a proxy connection. If you do need to apply IP address access controls, use Find denied IP addresses(Link opens in a new window) to find the denied IPs, and then add Allow rules for them. Be aware of that an IP associated with "servicenow-auth-proxy.connectors.tableau.com" may change. This is a cloud service and does not have static IP. Tableau does not provide or update information about the IP.

Make the connection and set up the data source

  1. Start Tableau and under Connect, select ServiceNow ITSM. For a complete list of data connections, select More under To a Server. Then do the following:

    1. Select Instance Location: Cloud-based or On Premise.
    2. Enter your ServiceNow instance, user name, and password for a local ServiceNow account.
      Note: When you select On Premise, you must enter a full URL for the ServiceNow instance.
    3. Select Sign In.
    4. Select Filter Type: Relative date range or Fixed date range, and then select or specify the range.
    5. Select Connect.
      If Tableau can't make the connection, verify that your credentials are correct. If you still can't connect, your computer is having trouble locating the server. Contact your network or ServiceNow administrator.
  2. On the data source page, do the following:

    1. (Optional) Select the default data source name at the top of the page, and then enter a unique data source name for use in Tableau. For example, use a data source naming convention that helps other users of the data source figure out which data source to connect to.

    2. Under Table, select a table and drag it to the top of the canvas.
    3. Select the sheet tab to start your analysis.
      After you select the sheet tab, Tableau imports the data by creating an extract. Note that Tableau Desktop supports only extracts for ServiceNow. You can update the data by refreshing the extract. For more information, see Extract Your Data.
      Creating extracts might take some time depending on the amount of data that is included.

Use Accelerators

You can use an Accelerator to quickly build informative dashboard designs made specifically for key business metrics on Tableau Desktop and Tableau Cloud. For more information, see Use Accelerators to Quickly Visualise Data.

Key considerations

ServiceNow enforces an account's access permissions

ServiceNow accounts that have the Admin role can retrieve encrypted password values from the User table. This file will be null for accounts with less permissions. Because ServiceNow enforces the access permissions assigned to the account, be aware that there might be other sensitive fields in your data that an Admin can access.

Custom tables not supported

The Tableau connector for ServiceNow ITSM supports the ITSM service, which doesn't include custom tables.

ServiceNow provides table names

When you view tables in the Tableau connector, the tables are labelled according to their ServiceNow label, not the table name. For example, the table "sys_user_role" is shown by its label, "User Role". This label is determined by the ServiceNow connector.

Display value fields aren’t included in the data source

When you connect to a table that contains fields with display values (fields with a dv_ prefix), those fields aren’t included when you create a data source. You can add the display values by joining to the appropriate related tables that contain those values.

Use a local ServiceNow account

You must use a local account to connect Tableau to your data. If you don’t have a local ServiceNow account, we recommend that you ask your administrator to implement one of the following solutions:

  • Create a local account and share it.
  • Create a local account and temporarily share it for long enough to extract the data and publish it to Tableau Cloud or Tableau Server. Then the administrator can save the new password and schedule refreshes.
  • Create a local account on a non-production ("staging") instance and use it to create a data source. Give the data source to the administrator to edit the connection to point to the production instance, publish the data source to Tableau Cloud or Tableau Server, and schedule data refreshes.
  • Ask the administrator to publish the data sources you need.

Date range selections can impact performance

When you apply a date filter, it's tempting to gather as much data as possible when you do an analysis, however, retrieving records from ServiceNow ITSM can be time-consuming. Tableau doesn’t know how much data there is in a particular date range until it retrieves the data. Therefore, you should restrict your date range at first, and then expand after you have evaluated performance. Date filters are applied to these tables: metric_instance, change_request, incident, task, problem.

To give you a rough idea of how much time it might take to retrieve data from ServiceNow ITSM, tests were conducted using a high-speed connection. This table shows how long it took in the test environment to retrieve a given number of records.

Number of records

Time to retrieve

1,000

11 seconds

10,000

2 minutes

100,000

18 minutes

Troubleshoot data access

For ServiceNow ITSM users

If you see an error when you try to access data, for example, "You are not authorised to access this resource...," contact your ServiceNow administrator.

For ServiceNow administrators

ServiceNow uses access control lists (ACLs) to specify who has access to which data. Often the default permissions that are set for ServiceNow fulfillers are adequate for Tableau users to access the content they need to analyse ServiceNow ITSM data.

Tableau users need to access metadata about tables in ServiceNow, which is available in the following tables:

  • sys_dictionary table (metadata about columns)
  • sys_db_object table (metadata about tables)
  • sys_glide_object table (metadata about field types)

If a Tableau user can't access ServiceNow ITSM data, make sure that the ACLs provide the user table level and field level read access to the tables above, and that there are no scripts that are locking down access.

To grant access to the metadata tables, as a best practice, you might consider creating a role with the ACLs needed to access the metadata tables, and then assign the role to a Tableau User group. Then, you can assign Tableau users to the group so that users can access the data needed for analysis in Tableau.

For information on the creation of an ACL, please see the ServiceNow Access control list rules(Link opens in a new window) on the ServiceNow website.

See also

Thanks for your feedback!Your feedback has been successfully submitted. Thank you!