> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/t/tanium-discover.md).

# Tanium Discover

Tanium Discover finds managed and unmanaged devices on the network. OctoXLabs reads the discovered interfaces through the Tanium Gateway GraphQL API and adds them to the device inventory.

## Use cases

* List the devices that Tanium Discover found, including unmanaged ones.

```
Adapters = tanium-discover
```

* Find discovered devices that no endpoint detection tool reports.

```
Adapters = tanium-discover AND NOT Adapters = falcon-crowdstrike
```

## Before you begin

### Network

| Source              | Destination                                                                                      | Port | Protocol |
| ------------------- | ------------------------------------------------------------------------------------------------ | ---- | -------- |
| OctoXLabs connector | Tanium Gateway host (Tanium Cloud: -api.cloud.tanium.com; on premises: Tanium Server FQDN or IP) | 443  | HTTPS    |

The connector uses HTTPS when Is Secure is on, and HTTP otherwise. It does not set a port. An optional HTTP proxy can be set.

### Required permissions

| Scope or role                                                      | Permission          | Needed for                |
| ------------------------------------------------------------------ | ------------------- | ------------------------- |
| Discover Asset Read (for example the Discover Read Only User role) | Read                | Discovered interfaces     |
| API Gateway User account                                           | Use the Gateway API | Signing in with the token |

The permissions come from the source instructions.

## Create credentials in Tanium Discover

{% stepper %}
{% step %}

### Sign in

Sign in to the Tanium Console as an **API Gateway User**.
{% endstep %}

{% step %}

### Check the permission

Make sure the account has the **Discover Asset Read** permission, for example through the Discover Read Only User role, so it can read discovered interfaces.
{% endstep %}

{% step %}

### Create the token

From the Main menu, go to **Administration** > **Permissions** > **API Tokens** and click **New API Token**.
{% endstep %}

{% step %}

### Set the details

Enter a note and set an expiration time.
{% endstep %}

{% step %}

### Add the source IP addresses

Enter the external IP addresses of the systems that will use the token to authenticate with Tanium.
{% endstep %}

{% step %}

### Save and copy

Click **Save**, then **Copy API Token**. The token starts with `token-`.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter | Required | Type     | Default | Description                                                                                                                         |
| --------- | -------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| Domain    | Yes      | Text     |         | Tanium host that serves the Gateway API. For Tanium Cloud use the -api subdomain. For on premises use the Tanium Server FQDN or IP. |
| API Token | Yes      | Password |         | Gateway API token (prefix token-), sent in the session header.                                                                      |
| Is Secure | No       | Boolean  | True    | Use HTTPS. Turn it off only for on premises servers without TLS.                                                                    |
| Page Size | No       | Integer  | 1000    | Interfaces per Gateway page.                                                                                                        |
| Proxy     | No       | Text     |         | Proxy address.                                                                                                                      |
| Timeout   | No       | Integer  | 30      | Seconds to wait for API responses.                                                                                                  |

## Troubleshooting

| Error message                          | Cause                                                                                                        | Fix                                                                           |
| -------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------- |
| Tanium Gateway GraphQL error: {errors} | Tanium answered HTTP 200 with a GraphQL errors array, for example for a wrong token or a missing permission. | Read the error text. Check the token, its expiry and the Discover permission. |

## Change history

{% hint style="info" %}
Available starting from version 6.7.2.
{% endhint %}
