Creating API tokens
API tokens for ServiceNow integrations
API authentication tokens enable users to secure sessions between ServiceNow integrations and your Tanium environment. One token is required for each service account or persona that you use to work in a ServiceNow integration. After you create a token, you enter it as a system property when configuring the integration. Scheduled jobs in ServiceNow automatically rotate the tokens every seven days by default.
RBAC for API tokens
Consider the following factors when you select a service account or a persona to associate with a token:
-
Service account: A service account is a user account that no specific user owns. All users who use the service account must share its credentials. For more information, see Configure a Tanium service account.
-
Persona: Using a persona enables you to configure one set of RBAC controls (such as role and computer group assignments) that apply to all the users who are assigned to that persona. For more information, see Configure a Tanium persona.
Trusted IP addresses for API tokens
Each API token specifies trusted IP addresses for the ServiceNow systems that communicate with Tanium Cloud. A token can authenticate for traffic only from the specified systems.
You must determine the trusted IP addresses before creating the associated token. See the ServiceNow Support KB article Finding the IP address information for your instance and then record the addresses that correspond to your Tanium environment:
-
On-Premises: Record the IP addresses of the management, instrumentation, and discovery (MID) servers that enable communication between the ServiceNow instance and the Tanium environment.
-
Cloud: Record the source IP address ranges of the ServiceNow instance.
Configure a Tanium service account
Associating an API token with a service account instead of a persona is a best practice, as described in RBAC for API tokens. If an account for the integration already exists, edit that account to assign the necessary roles. Otherwise, configure the assignments when you create a new account.
Perform the following steps to configure a service account. All the links in these steps are to the Tanium Console User Guide.
- Create a service account for your ServiceNow integration if the account does not already exist. For the steps, see Create a user.
- Assign the following roles to the account. For the steps, see Manage role assignments for a user.
- Gateway User
- Click Save to save the account configuration.
Configure a Tanium persona
Associate a persona with an API token only if you do not use a service account, as described in RBAC for API tokens. If a persona for the integration already exists, edit that persona to assign the necessary rolesand users. Otherwise, configure the assignments when you create a new persona.
Perform the following steps to configure a persona. All the links in these steps are to the Tanium Console User Guide.
- Configure a persona if the persona for your ServiceNow integration does not already exist.
- Assign the following roles to the persona, as described in Manage role assignments for a persona:
- Gateway User
- Assign users to the persona, as described in Manage user and user group assignments for a persona.
- Click Save to save the persona configuration. If you created a new persona, you must perform a hard refresh on your browser tab before the persona becomes available to select for your current Tanium session.
Create API tokens
Review the prerequisites and best practices in API tokens for ServiceNow integrations before you create tokens. Then perform the following steps for each token.