Prepare your ServiceNow® instance

Before installing the Snowflake Connector for ServiceNow®, you must set up your ServiceNow® instance. Complete the following steps:

ServiceNow® instance access

ServiceNow® user

Identify or create the ServiceNow® user for the connector.

To connect to the ServiceNow® instance, the connector must authenticate to the instance as a ServiceNow® user. Choose a ServiceNow® user that meets the following requirements:

  • The username cannot contain a colon (:).

  • The user must have read, query_match and query_range access to all records in the ServiceNow® tables that you plan to ingest. Access control lists (ACLs) should not hide any records in these tables from this user.

  • The user must have read, query_match and query_range access to all rows in the following tables in order to enable schema detection:

    • sys_db_object (with the fields name, super_class, sys_id),
    • sys_glide_object (with the fields name, scalar_type, sys_id),
    • sys_dictionary (with the fields element, internal_type, name, sys_id).
  • The user must have read, query_match and query_range access to all rows in the following table in order to use the proper ingestion strategy:

    • sys_table_rotation (with the name and sys_id fields).
  • The user must have read, query_match and query_range access to the sys_updated_on field in the below tables in order to not to use less cost-effective “truncate and load” ingestion mode:

    • sys_db_object,
    • sys_glide_object,
    • sys_dictionary,
    • sys_table_rotation,
    • journal table (usually sys_audit_delete).

Note

Configuring the connection in Snowsight using the OAuth authentication to ServiceNow® is possible only with interactive user (https://docs.servicenow.com/bundle/washingtondc-platform-administration/page/administer/users-and-groups/concept/c_NonInteractiveSessions.html). The ServiceNow® user is interactive if the Web service access only setting is disabled for the user.

You can use the OAuth authentication with non-interactive users only if you configure the connection with SQL commands. In this case, you cannot log in to ServiceNow® or get the OAuth refresh token using Snowsight.

Set up column indexes for optimized performance

If you plan to ingest and synchronize a ServiceNow® table that has a sys_updated_on field, we recommend setting up an index on that column. For information on setting up the indexes, see the Create a Table Index (https://docs.servicenow.com/bundle/washingtondc-application-development/page/administer/table-administration/task/t_CreateCustomIndex.html) in the ServiceNow® documentation.

After you create the index through the user interface, it may take some time for the index to be constructed. The indexing process runs as a background task.

If your instance has large tables, Snowflake recommends contacting ServiceNow® customer support to ask about the best approach to indexing large tables.

Optional steps

Next steps

After completing these procedures, follow the steps in Install and configure the connector with Snowsight or Install and configure the connector with SQL commands.