Controlling endpoint management rights through computer groups

Computer groups overview

A computer group defines a set of endpoints that you want to manage as a group with respect to operations that Tanium users and solutions perform. For example, you can define a computer group that includes all endpoints that are in a data center, and assign the group only to users who will issue questions and deploy actions to data center endpoints.

Computer groups are the building blocks of action groups, which filter the target endpoints for actions. For more information, see Targeting actions through action groups.

You can also use computer groups to filter questions, question results, and various lists in Tanium Console, such as on the Administration > Permissions > Users page.

Note: For the role permissions required to manage computer groups, see Manage computer management groups and Manage filter groups.
Note:

Review computer groups on a quarterly basis and delete any that are no longer useful. For more information, see Delete unnecessary computer groups.

Understand the best practices for computer groups before you create or edit custom groups. For more information, see Computer groups.

Computer group types

Based on the permissions that you want users to have when querying or deploying actions to sets of endpoints, you can create the following types of computer groups:

Note: The name for each type of computer group reflects how users apply it to retrieve or filter the results of questions issued to endpoints. All three types can use sensor-based filters to define which endpoints are group members. For more information, see Computer group membership.

Computer management groups

A Tanium user can view question results from, and deploy actions to, only those endpoints that belong to a computer management group that is assigned to the user or persona selected for the current session. Use the Administration > Permissions > Computer Groups page to manage computer groups that function exclusively as management groups, not filter groups.

Roles do not control access to computer management groups, but roles do control which content is available to the user for questions and actions. For example, you might want a user to see the processes running on endpoints in a data center. You must assign that user a role with Sensor read permissions on the content set containing the Running Processes sensor and also assign the user a computer management group that contains the data center endpoints.

The following figure illustrates the relationship between computer management groups and other Tanium role-based access control (RBAC) components.

Figure 1. RBAC components and assignments in computer management groups
computer management groups

Computer filter groups

Tanium users use computer filter groups as filters in questions (see Use computer group filters) and question results (see Filter question results). Users acquire permissions for a filter group when you assign it to a content set, grant filter group permissions to that content set in roles, and assign the role to user accounts, personas, or user groups. The following figure shows an example of a custom role that grants Filter Group read and write permissions to the Default Filter Groups content set:

Figure 2. RBAC components and assignments in computer filter groups
computer filter groups

Users cannot receive question results from endpoints in a filter group unless those endpoints also belong to a computer management group and you assign that management group to users, personas, or user groups.

To manage computer groups that function exclusively as filter groups, use the Administration > Permissions > Filter Groups page. For more information, see Managing filter groups for filtering questions and results.

Computer management and filter groups

You can configure computer groups to function as both management groups and filter groups. The reserved computer groups All Computers and No Computers function as both types. These reserved groups are in the Reserved content set, and you cannot edit them. When you first sign in to Tanium Console after a fresh installation of the Tanium Server, the Server automatically imports additional predefined computer groups that function as both filter groups and management groups. For more information, see Default computer groups.

Use the Administration > Permissions > Computer Groups page to manage computer groups that function as both management groups and filter groups.

Computer groups in questions

Understanding how Tanium Clients process questions can help you understand the interaction between computer management groups and filter groups, and how best to use them. The figure Computer management groups and filter groups in a question illustrates an example of how assigning computer groups and roles to a user account determines which question results the user can view and filter on the Interact Question Results page.

The example in the figure uses computer management groups named UK and France, which contain Tanium Clients in the corresponding branch offices. The sensors that define membership in the groups filter Clients based on their country codes (44 and 33). The organization headquarters is based in the U.S. (country code 1) and therefore the two groups do not contain any Clients in headquarters. The example user can retrieve question results from branch office Clients in the U.K. or France because the UK and France computer management groups are assigned to that user. The user cannot retrieve question results from Clients in headquarters because those Clients do not belong to a computer management group that is assigned to the user.

Table 1. Example: Computer management groups

Name

Membership filter

Tanium Clients

UK

Country Code equals 44

UK_win_1, UK_win_2, UK_mac_1, UK_mac_2

France

Country Code equals 33

FRA_win_1, FRA_win_2, FRA_mac_1, FRA_mac_2

The user is also assigned a role (euro_admin) that provides access to the Default content set, which includes filter groups named All Windows and All Macs. Therefore, the user can use those filter groups to filter question results. Each group contains all the Tanium Clients with a specific operating system across all branch offices and headquarters.

Table 2. Example: Filter groups

Name

Membership filter

Tanium Clients

All Windows

Is Windows equals True

UK_win_1, UK_win_2, FRA_win_1, FRA_win_2, HQ_win_1, HQ_win_2

All Macs

Is Mac equals True

UK_mac_1, UK_mac_2, FRA_mac_1, FRA_mac_2, HQ_mac_1, HQ_mac_2

In this example, the user issues the following question:

Get Computer Name and PowerShell Version equals 2.0 from all machines with Country Code equals 44

All Tanium Clients that are online receive the question and process its components in the following order:

  1. Computer group management permissions

    Each Tanium Client first evaluates whether it belongs to a computer management group that is assigned to the user who issued the question. If not, the Client does not process the question further. In the example, only the Clients in the UK and France management groups continue processing the question.

    The All Windows and All Mac filter groups bestow only filtering permissions, not the permission to receive answers from Clients. Therefore, the Windows and macOS Clients in headquarters (HQ_*) do not continue processing the question because they do not belong to any computer management group that is assigned to the user.

  2. Target filter (from) clause

    The from clause specifies whether question results are required from all Tanium Clients (from all machines) or only from Clients that evaluate the filtering sensor to true. The example question targets endpoints with country code 44, which corresponds to the U.K. Therefore, only the UK Clients match the target filter clause from all machines with Country Code equals 44 and continue to process the question.

  3. Select statement (get) clause

    The get clause specifies the sensors that Clients run to answer the question. If the clause has a filter, Clients apply the filter to the sensor results and return the filtered results to the Tanium Server. Interact then shows the filtered results in the Question Results page.

    In the example, the UK Clients run the sensors Computer Name and PowerShell Version, process the equals 2.0 filter for the PowerShell Version sensor, and return the filtered results to the Tanium Server. Interact then displays results only for UK Clients that have PowerShell version 2.0 installed.

In the example, the user wants the Question Results page to show results only for Clients that run Windows. Therefore, the user selects the All Windows filter group in the Filter by Computer Group dropdown list. The Tanium Server reissues the question using both Country Code equals 44 and Is Windows in the target filter clause. The Question Results page then shows results only for Tanium Clients UK_win_1 and UK_win_2 because only those Clients match both filters.

Figure 3. Computer management groups and filter groups in a question
Computer management groups and filter groups in a question

Computer group membership

Before you create a computer management group (see Configure a computer group) or filter group (see Configure a filter group), be sure to understand the following options for defining which endpoints are members. After creating a group, you cannot change its membership definition.

Dynamic membership

Dynamic membership in a computer group is based on the results of a sensor filter expression, such as is Windows equals true. Tanium Clients process the expression to determine whether their endpoints belong to the group. For more information about using filter expressions, see Use question filters.

Whenever possible, define computer group membership based on sensors. Only groups based on a sensor dynamically adjust their membership as endpoints join or leave your network. For example, you might create a manual group called Critical Servers for three special servers. If you later add a fourth server to the cluster, you cannot change the Critical Servers membership. Instead, you would have to: create a new manual computer group; assign it to users; and re-create pertinent action groups and saved questions that you want to target the new computer group. A better approach is to define the computer group based on a sensor that identifies which servers qualify as critical, so that the fourth server automatically becomes a member.

Important: When you configure a computer group with membership based on a parameterized sensor, the Tanium Server creates an object called a temporary sensor, which contains the substituted parameter values and a link to the actual sensor. The Tanium Client runs the temporary sensor to process questions or actions that target the computer group. If the sensor definition changes on the Server, the Client receives the new definition after its next registration interval. The Client then applies the parameter values to the updated sensor definition for subsequent questions or actions that target the computer group.
Tip: If you base the sensor filter on a custom tag, you can change tag assignments on endpoints to adjust the membership of a computer group. For more information, see Manage computer group membership through custom tags.

Manually defined membership

Manually defined membership in a computer group is based on a manually entered list of computer names, IP addresses, or fully qualified domain names (FQDNs). The Tanium Client obtains configuration information for the computer groups when registering with the Tanium Server.

Default computer groups

When you first sign in to Tanium Console after a fresh installation of the Tanium Server, the Server automatically imports a content-only solution named Default Computer Groups, which includes predefined computer groups. They all function as both management groups and filter groups, and are assigned to the Default Filter Groups content set.

To list the defaults groups:

  1. Go to on the Administration > Permissions > Computer Groups page and expand Expand the Filters section.

  2. Click Add Row, add the following filter, and click Apply Apply:

    • Attribute: Content Set

    • Operator: is equal to

    • Value: Default Filter Groups

  3. Click Add Add, select Add Row, add the following filter, and click Apply Apply:

    1. Attribute: Created By

    2. Operator: is equal to

    3. Value: Administrator

Note: The Tanium Server creates additional default computer groups as part of Initial content during installation.

The Server does not import default computer groups when you upgrade the Server.

View computer group details

Viewing computer group attributes can help you to determine if new groups are necessary and to manage or troubleshoot existing groups. For example, you might check the Expression attribute of a group to diagnose issues related to action targeting.

Note: As part of quarterly maintenance for your Tanium environment, review the custom computer groups and Delete computer groups that are no longer useful or that have memberships that duplicate other groups.
  1. From the Main menu, go to Administration > Permissions > Computer Groups.

    The Computer Groups grid shows the following attributes for each computer group:

    • Name: The name that identifies the computer group.

    • Type: Indicates whether group membership is sensor-based (Standard) or manually defined (Manual). For more information, see Computer group membership.

    • Management: Indicates whether you can (true) or cannot (false) use the group as a computer management group.

    • Content Set (filter groups only): The content set to which the group is assigned.

    • Expression: The filter used to define membership in the computer group. The value is [Manual List] for groups with manually defined membership.

    • Modified By (Persona): The name of the user who last modified the computer group. If the user used an alternative persona during the modification, the persona appears in parentheses.

    • Last Modification: The date and time when a user last modified the computer group.

  2. (Optional) Use the filters to find specific computer groups:
    • Filter by text: Enter a text string in the Filter items field to filter the grid by computer group Name or membership Expression.
    • Filter by attribute: Expand Expand the Filters section, select a group attribute (such as Content Set assignment), select an operator (such as contains), enter a text string that contains all or part of the attribute value, and click Apply Apply. For each additional filter, click Add, select Add Row, and configure the filter. Boolean AND logic applies if you configure multiple filters.
  3. To see a list of endpoints that are members of a group, click the group Name and go to the Members section.
    Tip: Clicking the icon for an endpoint opens the Endpoint Details dialog, where you can View details for a single endpoint.

Configure a computer group

Considerations for creating computer groups

Create a custom computer group if the Tanium-defined groups do not address all the scenarios for managing endpoints in your environment. For example, you might want to deploy actions only to endpoints that have a certain custom tag. Before you create a computer group, be sure to understand the difference between dynamic membership and manually defined membership. For more information, see Computer group membership.

Tip:

Cloning an existing computer group is usually easier than creating a group from scratch if the new group has settings that differ only a little from the original group.

To create a computer group that functions exclusively as a filter group and not as a computer management group, see Configure a filter group.

Considerations for editing computer groups

For existing computer groups, you can edit the name and enable or disable their use as filter groups. However, changing the name does not change the object ID of a computer group. Also, you cannot change the group membership definition. However, if you configure a new group with dynamic membership and base it on a custom tag, you can change tag assignments on endpoints to adjust the group membership. For more information, see Manage computer group membership through custom tags.

Create, clone, or edit a computer group

  1. From the Main menu, go to Administration > Permissions > Computer Groups and perform one of the following steps:

    • Create a computer group from scratch: Click New Computer Group.

    • Clone a computer group: Select the computer group and click Clone.

    • Edit a computer group: Click the computer group Name and click Edit Mode.

  2. Specify a Name of up to 255 characters to identify the group.

  3. Under Additional Options, select whether users can (Enable) or cannot (Disable) use this group as a filter group. If you enable the filter group function, select a content set. To use the filter group, users require a role that specifies permissions for that content set.

  4. Define which endpoints are Members of the computer group.

    • Dynamic membership (best practice): Select a method for defining the membership filter:

    • Manually defined membership: Select Manual Group and enter a list of endpoint identifiers, which can be one of the following:

      • Computer names that match the results of the Computer Name sensor. Short forms or alternative names do not work.

      • Fully qualified domain names (FQDNs).

      • IP addresses that match the entries in the Administration > Configuration > Client Status page, Network Location (from server) column.

  5. Review the list of endpoints that are members of the group and click Save.

    Tip: Clicking the icon for an endpoint opens the Endpoint Details dialog, where you can View details for a single endpoint.

Assign computer groups

Assign computer management groups to enable users to view question results from, and deploy actions to, the endpoints in those groups. You can assign up to 255 computer management groups to each user, persona, or user group. The user limit does not include computer groups that a user inherits from user groups. For example, if you assign 255 computer groups to a user, that user can still inherit up to 255 computer groups from each user group to which the user belongs.

A user account or persona that has the Unrestricted Management Rights option enabled can view question results from, and deploy actions to, all computer groups. You cannot enable the option for user groups.

Important: Tanium strongly recommends that you do not assign Unrestricted Management Rights, unless you want the user or persona to be able to manage all endpoints across all computer groups regardless of security considerations.

Perform the following tasks to assign or unassign computer groups:

Note: Tanium Data Service (TDS) automatically registers sensors that define membership in custom computer groups when you assign those groups to users, personas, and (under certain conditions) user groups. For more information, see Sensor registration and unregistration.
Tip: To target computer groups for action deployment, assign them to action groups. For more information, see Create an action group.
Note: Computer group assignments affect the processing load on endpoints. To optimize processing usage, see Computer group membership.

Manage computer group membership through custom tags

A custom tag is a user-defined label that you can assign to, or unassign from, endpoints. Tags are useful for defining computer group membership if you sometimes want to change which endpoints are members. For example, you can configure a computer group with the Members setting set to the filter Custom Tags contains "test". Then you can add or remove the tag test on endpoints that move in or out of the environment to change the group membership.

You use the Custom Tags sensor to define membership for a computer group that is based on custom tags. Before you create tag-based computer groups, review Dynamic membership for important details about using sensors to define membership.

Note: To configure computer groups based on enhanced tags, see Enhanced Tags Documentation.

Review custom tags

To see which custom tags are assigned to endpoints, ask a question using the Custom Tags sensor, such as:

Get Custom Tags from all machines

To see which endpoints have a specific custom tag, ask a question using the Custom Tag Exists parameterized sensor, such as:

Get Tanium Client Version from all machines with Custom Tag Exists[lab,1] equals true

For more information about asking questions, see Exploring and accessing endpoints in Console and Interact.

Add custom tags

  1. Ask a question to target the endpoints that require custom tags. Because different packages add tags for Windows or non-Windows endpoints, ask a question that specifies the distinction, such as:

    Get Tanium Client Version from all machines with Is Windows equals true

  2. Select the endpoints to target and click Deploy Action.
    Tip: You can Drill down into results or Merge questions to refine the results before selecting endpoints.
  3. Select one of the following packages as the Configure action settings:
    • Custom Tagging - Add Tags for Windows endpoints
    • Custom Tagging - Add Tags (Non-Windows)
  4. Enter a list of tag names with spaces as delimiters.
    Note: (Windows only) To include any tag names with spaces, use the character sequence #|# as a delimiter. To apply a single tag that includes spaces, enter the character sequence #|# after the tag name.
  5. Configure the remaining action settings. For more information, see Configure action settings.
  6. Click Show Preview To Continue, review the list of targeted endpoints, and click Deploy Action.

Remove custom tags

  1. Ask a question to target the endpoints from which to remove custom tags. Because different packages remove tags for Windows or non-Windows endpoints, ask a question that specifies the distinction, such as:

    Get Custom Tags from all machines with ( Is Windows equals true and Computer Name contains ABC )

  2. Select the Question Results rows for the tags that you want to remove and click Deploy Action.
    Tip: You can drill-down or merge questions to refine the results before selecting endpoints.
  3. Select one of the following packages as the Deployment Package:
    • Custom Tagging - Remove Tags for Windows endpoints
    • Custom Tagging - Remove Tags (Non-Windows)
  4. Configure the remaining action settings. For more information, see Configure action settings.
  5. Click Show Preview To Continue, review the list of targeted endpoints, and click Deploy Action.

Export or import computer groups

Export computer groups

Export computer groups as a file in the format required for your workflow:

  • CSV

    You can use any application that supports CSV format to display the same computer group attributes (columns) as the Console Computer Groups grid shows and then customize the display. For example, you can use Microsoft Excel to create charts based on computer group attributes.

  • JSON

    You can export multiple computer group configurations as a JSON file. Exporting configurations is useful if you want to import them into another Tanium environment. For example, you might test custom computer groups in a lab environment to ensure that they work as intended before importing the groups into your production environment. You must be assigned a role with the Export Content permission to export a JSON file. If you have Import Signed Content permission, you can then import the file into another Tanium Server. The Administrator reserved role has export and import permissions.

Perform the following steps to export computer groups:

  1. From the Main menu, go to Administration > Permissions > Computer Groups.
  2. (Optional, CSV exports only) To add or remove attributes (columns) for the CSV file, click Customize Columns Customize Columns in the grid and select the attributes.
  3. Select rows in the grid to export only specific computer groups. If you want to export all computer groups, skip this step.
  4. Click Export Export.
  5. (Optional) Edit the default export File Name.
    Note: The file suffix (.csv or .json) changes automatically based on the Format selection.
  6. Select an Export Data option: All computer groups in the grid or just the Selected computer groups.
  7. Select the file Format:
    • List of Computer Groups - CSV

    • Computer Group Definitions - JSON (requires Export Content permission)

  8. Click Export.

    The Tanium Server exports the file to the downloads folder on the system that you used to access Tanium Console.

Import computer groups

Importing is useful if you want to copy computer group configurations from another Tanium environment. For example, you might test custom computer groups in a lab environment to ensure that they work as intended. You can then export the groups from the lab environment and import them into your production environment. You can import computer groups and other content as a JSON or XML file.

You must be assigned a role with Import Signed Content permission to import content files through the following steps.

  1. (Non-Tanium-provided content only) Digitally sign the content file and ensure a public key is in place to validate the signature. For more information, see Authenticating content files.
    Note: You do not have to generate keys or signatures for Tanium-provided solutions. Tanium signs this content before making it available, and the associated public key is distributed to the Tanium Server key store during the Server installation process.

    If you plan to import a file that another user signed, you can first perform an integrity check on the file. For more information, see Verify content file signatures.

  2. From the Main menu, go to any of the following Administration pages:
    • Configuration > Solutions
    • Permissions > Filter Groups
    • Under Content, select Sensors, Packages, or Saved Questions
    • Under Actions, select Scheduled Actions, All Pending Approvals, or Actions I Can Approve
  3. Select an Import option based on the source of the content:
    • Import > Import Files: Perform one of the following steps to select one or more files:

      • Drag and drop files from your file explorer.

      • Click Browse for File, select the files, and click Open.

    • Import > Import URL: Enter the URL in the Import URL field, and click Import.

  4. For each file, expand Expand the File name, review the content to import, and select resolutions for any conflicts with existing content. For more information, see Resolve import conflicts.
  5. If you want to overwrite existing content set assignments for all imported objects with the default Tanium-defined assignments, select Include content set overwrite. By default, Include content set overwrite is cleared and the Tanium Server preserves the existing content set assignments.
  6. Click Begin Install.

Copy computer group configuration details

Copy information from the Computer Groups page to your clipboard to paste the information into a message, text file, or spreadsheet. Each row in the grid is a comma-separated value string in the content that you copy.

  1. From the Main menu, go to Administration > Permissions > Computer Groups.
  2. Perform one of the following steps:
    • Copy row information: Select one or more rows and click Copy Copy.
    • Copy cell information: Hover over the cell, click Options Options, and click Copy Copy.

Delete computer groups

Important: Do not delete the predefined computer groups that Tanium solutions provide. When you import solution updates, the update process restores any predefined computer groups that users deleted.
Note: Instead of deleting custom computer groups, instruct users not to use them.

Review the following considerations before you delete computer management groups:

  • RBAC assignments

    Account for user and user group configurations that might reference the computer management group through personas. Be prepared to modify those configurations as needed.

  • Content associations

    Account for other configurations that might have referenced the computer group, such as action groups, scheduled actions, and saved questions. The scheduled actions and saved questions that are configured to target the computer group continue to do so because they do not depend on the computer group ID, just the information that the computer group provided at the time it was created.

  • Scheduled content

    If you intend to stop the scheduled activities (such as scheduled actions and saved questions) that target those computers, you must disable, edit, or delete the corresponding configurations.

  • Question targeting

    Endpoints continue to match targeting questions as long as they match the sensor filter expression or manual group ID. The manual group ID obtained during registration is never erased from the Tanium Client configuration, so targeting questions based on a manual group ID continue to match as well.

  • Filter/management groups

    Deleting a computer management group through the Administration > Permissions > Computer Groups page removes all instances of the group from the Tanium Server even if the group also functions as a filter group. However, if you use the Content > Filter Groups page to delete a filter group that also functions as a management group, the group remains on from the Server as a management group with filtering disabled.

Note: To delete a filter group, see Delete filter groups.

When you are ready to delete the computer management group, perform the following steps.

  1. From the Main menu, go to Administration > Permissions > Computer Groups.
  2. Select the computer group and click Delete coreui-trash.