Reference: Restrict which endpoints the connector imports

Service Graph Connector for Tanium Atlas and Service Graph Connector for Tanium Atlas Endpoints request endpoint data from Tanium Gateway with the API token that you enter in the ServiceNow connection. Tanium returns data only for endpoints that belong to a computer management group assigned to the service account or persona to which the token is bound. If no computer management group is assigned, the request returns no data. These connectors do not have a filter setting of their own. The computer management groups assigned to that account or persona are the only control over which endpoints reach the CMDB. Management-rights scoping applies the same way regardless of whether Tanium, Microsoft Intune, or Tanium Device Management manages the endpoint.

Important: This is an inclusion model. You define the set of endpoints to import. Every endpoint outside that set is excluded. To reproduce an exclusion that you applied in a Tanium Asset view for Service Graph Connector for Tanium, invert it. For example, the Asset view exclusion Computer Name contains "LAB" becomes a computer management group whose membership filter is Computer Name does not contain "LAB".

Scope the endpoints that the connector imports

To scope the endpoints that the connector imports, you need the Computer Group write permission to create and edit computer management groups, and the Management Rights write permission to assign computer management groups to the service account or persona. To create a group with a sensor-based filter, you also need read permission on the sensor in the Reserved content set. The Admin reserved role includes all of these permissions.

  1. Sign in to Tanium Console.

  2. Define and test the membership filter in Interact. In the Ask a Question field on the Tanium Home page, type Get Computer Name from all machines with <filter>, where <filter> selects only the endpoints to import. For example:

    • To import everything except lab machines, use: Computer Name does not contain "LAB"

    • To import physical endpoints only, use: Is Virtual equals false

    • To import Windows and macOS endpoints only, use: Is Windows equals true or Is Mac equals true

    • To import only endpoints that carry a custom tag, use: Custom Tags contains "cmdb-sync"

    • To import everything except Windows servers (Service Graph Connector for Tanium Atlas only), use: Operating System does not contain "Server"

    On the Question Results page, select Cached to include offline endpoints. Verify that the results list exactly the endpoints to import.

  3. Create the computer management group.

    1. From the Main menu, go to Administration > Permissions > Computer Groups and click New Computer Group.

    2. In the Members section, use the Filter Bar, Filter Builder, and Manual Group controls to define the members of the group. For more information, see Configure a computer group.

    3. Click Save.

    Note: You cannot change the membership definition of a group after you create it. If the set of endpoints changes over time, base the group on the Custom Tags sensor and add or remove the tag on endpoints instead of recreating the group.
  4. Assign only that group to the service account or persona. Use a dedicated service account or an alternative persona for each connection; a dedicated service account is a best practice.

    1. From the Main menu, go to Administration > Permissions > Users or Administration > Permissions > Personas.

    2. Click the name of the account or persona, click Edit Mode, and expand Computer Groups.

    3. Make sure Unrestricted Management Rights is not selected.

    4. Click Manage Computer Groups, select only the group that you created in the previous step, deselect All Computers, and click Select.

    5. Assign the required Tanium roles and click Save.

    Note: Computer group assignments are combined. Review the User Groups of the account or persona to make sure no inherited group widens the scope.
  5. Create the API token bound to that service account or persona and enter it in the ServiceNow connection. For the steps, see Creating API tokens for ServiceNow.

  6. Verify the scope. After the first import, compare the number of CIs with the Discovery source of the connector against the member count of the group. To see what the token can view, switch to the persona, or sign in as the service account, and ask a question in Interact. The results are limited by the same management rights.

For a tag-based group, you can update the scope later to add or remove the tag on endpoints. For a filter-based or manual group, create the new group. Then, in one edit, assign the new group and remove the old group so the account or persona is never left with zero groups. Create an API token and update the connection.