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.

Important: For the best results, do not configure a playbook that might take more than 90 days to complete. Playbook runs have a maximum lifetime of 90 days, after which the playbook run immediately ends. In-flight actions that started because of the playbook run, such as deploying a Tanium package to endpoints, complete as expected, but in-flight functionality specific to a playbook run, such as a Manual Instruction step, does not complete.

Create a playbook

  1. From the Main menu, go to Automate > Overview.
  2. In the Playbooks section, click Create Playbook.

    The Create Playbook page opens.

  3. Enter a name and optional description for the playbook. The playbook name does not need to be unique.
  4. Select a Content Set to which this playbook belongs.
  5. (Optional) Configure playbook run notifications. For more information, see Configure playbook run notifications.
  6. Add steps.
    1. Click Add Step.
    2. Click add_button next to the step that you want to add.
    3. Enter all information for the step. For more information, see Reference: Steps.
    4. Configure field parameters. For more information, see Configure playbook field parameters.
    5. Click Apply when finished with the step, or click Apply and Add Step to add the step and configure another step.
  7. (Optional) Update added steps. You have the following options:
    • To reorder a step, click grabber and drag the step in the order that you prefer.

    • To clone an existing step, click Clone Step clone_step. The cloned step has - Clone suffixed to the name.

    • To delete a step, click Delete delete.

    • To add a step after an existing step, click Add add next to the existing step.

  8. When finished, click Save.

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.

Note: To schedule runs, you must have the Automate Playbook execute permission on the playbook content set. If you assign a playbook to a different content set and a user does not have access to that content set, any scheduled runs associated with that user are disabled.
  1. From the Main menu, go to Automate > Overview.

    The Automate Overview page appears with the Playbooks tab open in the Playbooks section.

  2. Click a Playbook Name to open that playbook, and then click Edit.

    The Edit Playbook page appears.

  3. (Optional) Edit the name or description. The playbook name does not need to be unique.
  4. (Optional) Edit the Content Set to which this playbook belongs.
  5. (Optional) Configure playbook run notifications. For more information, see Configure playbook run notifications.
  6. (Optional) Add steps.
    1. Click Add Step.
    2. Click add_button next to the step that you want to add.
    3. Enter all information for the step. For more information, see Reference: Steps.
    4. Configure field parameters. For more information, see Configure playbook field parameters.
    5. Click Apply when finished with the step, or click Apply and Add Step to add the step and configure another step.
  7. (Optional) Update added steps. You have the following options:
    • To reorder a step, click grabber and drag the step in the order that you prefer.

    • To clone an existing step, click Clone Step clone_step. The cloned step has - Clone suffixed to the name.

    • To delete a step, click Delete delete.

    • To add a step after an existing step, click Add add next to the existing step.

  8. (Optional) To edit existing steps, select a step, and then update the field values.
  9. When finished, click Save.

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.

Note: All configured email addresses receive one email notification per event. Do not add an email address to the recipient list multiple times.

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

  1. From the Create Playbook or Edit Playbook page, expand the Notifications section.
  2. Select one or more event types to send a notification by email.
  3. If you selected an email notification, enter Recipients email addresses, either separated with a comma (,) or each on a new line.
  4. 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 cog 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.

  1. From the Create Playbook or Edit Playbook page, select Add Parameter for the step field.
  2. Optionally, enter a parameter description.
  3. Enter a parameter value.

Clone a playbook

To clone a playbook, you must have the Automate Playbook write permission on the playbook content set.

Note: When you clone a playbook, you can edit the new playbook before you save the playbook. Playbook schedules are not cloned when you clone a playbook.
  1. From the Main menu, go to Automate > Overview.

  2. In the Playbooks tab, find the row for the playbook, click Actions options2 and then select Clone.

  3. Provide a name and optional description for the new playbook.

  4. Edit any settings or steps and then click Create.

    For more information about the fields and steps that you can edit, see Create a playbook.

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.

Note: You can export only the most recent version of a playbook. If you export a playbook, the JSON file does not include schedule configuration, the playbook owner, associated playbook runs, or indirectly associated content, such as packages or sensors referenced in a step.

Export a playbook

  • From a playbook detail view, select Actions > Export.

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.

  1. From the Automate menu, go to Overview.
  2. In the Playbooks tab, select one or more playbooks that you want to export.
  3. 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 owner of each imported playbook, instead of the original exported playbook owner.

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.

Note: Ensure that the Tanium environment contains all necessary dependencies, including solution dependencies for configured steps, actions and packages referenced by steps, or other Tanium configurations. Otherwise, playbook runs initiated from this playbook might return an error or fail to complete.
  1. From the Main menu, go to Automate > Overview.
  2. In the Playbooks tab, click Import.
  3. 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.
  4. Select the playbooks to import.
  5. 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.

  1. From the Main menu, go to Automate > Overview.
  2. In the Playbooks tab, find the row for the playbook, click Actions options2 and then select Delete.
  3. Click Delete to confirm that you want to delete the playbook.