Building playbooks
Automate provides an intuitive, no-coding playbook builder that simplifies Tanium platform interactions into logical and repeatable action to solve your key scenarios. Playbooks offer a mix of full automation and user-driven actions across Tanium solutions to streamline routine business processes for teams and to improve productivity.
Create a playbook
Automate saves the playbook and opens the Playbook Details page.
Edit a playbook
When you edit and save a playbook, any changes that you make are applied to future runs of the playbook. Playbook runs that are in progress are not affected by edits to the playbook. However, saving any playbook updates also disables all associated playbook schedules created by other users, because updates might affect how a playbook run affects an endpoint.
You can only edit a playbook if you have access to the content set to which the playbook is assigned. If you want to edit a playbook that is assigned to a content set you cannot access, you can either update the playbook content set to a content set you can access, or you can clone the playbook and edit the cloned version, reassigning it to a content set you can access. For more information, see Clone a playbook.
Automate saves the playbook and opens the Playbook Details page.
Configure playbook run notifications
Automate can send playbook run event notifications as emails to configured recipient email addresses. You can configure notifications for the following playbook run event types:
-
Run starts - A Tanium operator manually starts a playbook run or a scheduled playbook automatically starts a playbook run
-
Run completes - A playbook run completes
-
Run stops prior to completion - A playbook run stops before completion
-
Run has errors - A playbook run generated an error
-
Step requires user confirmation to continue - More than 10 minutes elapsed since a step that requires manual Tanium operator intervention started, such as the Manual Instruction step or Requires User Confirmation step
Email notifications are sent by the From User email address configured in the email server profile. The subject starts with Tanium Playbook and contains the selected playbook run event type and related information. The email body contains playbook run and event information.
Before you begin
-
Automate emails require Tanium Email 1.2.91 or later, a configured email server, and the Automate Playbook write and Email send permissions, to create or update a playbook that can send email notifications. To receive email notifications, ensure that the From User email address and the email server are added to your network allow list, and that no local user email access rules block emails from the From User email address.
Note: You must configure at least one email server profile in the Tanium Connect settings to submit a request to send email. Configuring an email server profile requires Connect 5.16.180 or later and the Email Config write permission. For more information, see Configure email server profile settings for Microsoft 365. -
To start a playbook run that sends email notifications, the Tanium operator must have the Email send permission and access to an email server profile. If the Tanium operator has permission to more than one email server profile, Automate selects one to send emails.
Note: The Automate Playbook execute permission automatically provides the Email send permission on the Connect content set. This content set contains new email server profiles by default.
Configure notifications from a playbook
- From the Create Playbook or Edit Playbook page, expand the Notifications section.
- Select one or more event types to send a notification by email.
- If you selected an email notification, enter Recipients email addresses, either separated with a comma (,) or each on a new line.
- Click Save.
Configure playbook field parameters
You can create playbooks with step field parameters. When you manually start a playbook run, you can assign field parameter values for that playbook run, and reuse a playbook for various scenarios that might require different field values or endpoint targeting. You must define a default parameter value. If the Tanium operator that starts a playbook run does not change a parameter value, the playbook run uses that default value. If you schedule playbook runs, you define the parameter values when creating the schedule, and each scheduled run uses the same parameter values.
Only certain fields support parameter substitution when you manually start a playbook run. Some fields might depend on a separate field value to be defined before determining valid values for the dependent field. For example, an Install Patch step requires selecting the targeted endpoint Platform before the Content to Deploy fields populate with values relevant to the selected operating system. Other fields might not support parameters, and require that the field value defined during playbook creation is used for every playbook run. For example, the step Name generally does not support parameters, and each step name remains the same for every playbook run.
Fields that support parameters display a Add Parameter checkbox. Fields that do not support parameters do not display a Add Parameter checkbox, and use the defined playbook value. When users run the playbook, they can review and update the parameter values. Parameterized fields show the Parameter pill.
You can define zero, one, or multiple field parameters for a playbook. The parameter value data type must match the field data type. For example, you cannot assign a string parameter value to a number data type field.
- From the Create Playbook or Edit Playbook page, select Add Parameter for the step field.
- Optionally, enter a parameter description.
- Enter a parameter value.
Clone a playbook
To clone a playbook, you must have the Automate Playbook write permission on the playbook content set.
Export and import playbooks
You can export one or more playbooks to a JSON file. The playbook configuration includes configured steps and playbook metadata, such as name and description. The playbook configuration does not include associated playbook schedules. You can edit the JSON file offline and then import the file back into Automate.
Export a playbook
-
From a playbook detail view, select .
The JSON file downloads to the browser's download folder.
Export multiple playbooks in one file
You can export up to 500 playbooks in a single JSON file.
- From the Automate menu, go to Overview.
- In the Playbooks tab, select one or more playbooks that you want to export.
- Click Export.
The JSON file downloads to the browser's download folder.
Import a playbook JSON file
If you import a JSON file containing playbook configuration, each playbook is created as a new playbook, and does not overwrite existing playbooks, even if the playbooks have the same name. The importing user and active persona are set as the author of each imported playbook, instead of the original exported playbook author.
Multiple playbooks in a JSON file import one at a time. If one playbook fails to import, the import process continues for remaining playbooks. After the import completes, verify the configuration for any playbooks that failed to import, export these playbooks in a new JSON file, then import that file.
- From the Main menu, go to .
- In the Playbooks tab, click Import.
- From the Import Playbooks dialog, either drag the JSON file into the drop area, or click Browse for File to select the JSON file that you want to import.
- Select the playbooks to import.
- Click Import.
Delete a playbook
You can only delete a playbook if you have access to the content set associated with a playbook.
-
If you delete a playbook with scheduled runs, future runs are canceled.
-
If you delete a playbook with an active run, the run continues to completion. If needed, you can manually stop an active run; see Stop playbook run.
- From the Main menu, go to .
- In the Playbooks tab, find the row for the playbook, click Actions
and then select Delete.
- Click Delete to confirm that you want to delete the playbook.