> 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/z/zscaler-digital-experience.md).

# Zscaler Digital Experience

Zscaler Digital Experience (ZDX) is a digital experience monitoring platform. It collects hardware, network and software data from the Zscaler Client Connector agent. OctoXLabs reads the devices and users that ZDX reports and adds them to the inventory.

## Use cases

* **Find endpoints seen by ZDX that are missing from your EDR.** Replace the adapter slug with the one for your EDR.

```
Adapters = zscaler-zdx AND NOT Adapters = crowdstrike
```

* **Find ZDX users with no directory account.** How accounts are matched depends on your user merge settings.

```
Adapters = zscaler-zdx AND NOT Adapters = active-directory
```

## Before you begin

### Network

| Source              | Destination                         | Port | Protocol |
| ------------------- | ----------------------------------- | ---- | -------- |
| OctoXLabs connector | api.zdxcloud.net (Domain parameter) | 443  | HTTPS    |

The host depends on the Zscaler cloud your tenant is on. The ZDX Admin Portal shows it on the page where the API key is created. If a proxy is set, requests go through it.

### Required permissions

| Scope or role                          | Permission | Needed for        |
| -------------------------------------- | ---------- | ----------------- |
| API key role with read only permission | Read       | Devices and users |

The key must be **Enabled**. All requests the adapter sends are read operations. The connector also reads `/v1/devices/{id}`. If the key cannot read that endpoint, the connector logs a warning and keeps the device from the list without hardware, network and software details.

## Create credentials in Zscaler Digital Experience

{% stepper %}
{% step %}

### Open API Keys

Log in to the **ZDX Admin Portal** and go to **Administration > API Keys**.
{% endstep %}

{% step %}

### Add the key

Click **Add API Key** and enter a name.
{% endstep %}

{% step %}

### Check the role and status

Make sure the key is **Enabled**. A role with read only permission is enough.
{% endstep %}

{% step %}

### Copy the credentials

Copy the **Key ID** and the **Key Secret** before closing the dialog. The secret is shown only once.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
ZDX reports devices and users that were active in the last two hours, the widest range one request may cover. A device that is offline during discovery is not listed in that run. Assets already collected are not removed, so several runs a day give wider coverage.
{% endhint %}

{% hint style="info" %}
ZDX applies a rate limit per source IP, and the ceiling depends on your license tier. The connector reads the rate limit headers and slows down before the limit is reached, so a large discovery can take a while.
{% endhint %}

## Connection parameters

| Parameter  | Required | Type    | Default          | Description                                                           |
| ---------- | -------- | ------- | ---------------- | --------------------------------------------------------------------- |
| Domain     | No       | String  | api.zdxcloud.net | ZDX API host for your cloud, without a scheme or path.                |
| Api key    | Yes      | String  | None             | The Key ID of the API key.                                            |
| Api secret | Yes      | String  | None             | The Key Secret of the API key.                                        |
| Proxy      | No       | String  | None             | Proxy address, used as `http://<value>` for HTTP and HTTPS. Advanced. |
| Timeout    | No       | Integer | 30               | Seconds to wait for an API response. Advanced.                        |

## Troubleshooting

| Error message                                                  | Cause                                                                                | Fix                                                                                                                      |
| -------------------------------------------------------------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
| Max retries exceeded for {url}                                 | The API kept answering 401 or 429.                                                   | Check the key and secret, then run discovery again later. Other integrations on the same egress IP share the rate limit. |
| Device details could not be collected for {n} devices.         | The detail request failed for those devices. This is logged as a warning.            | Check that the API key role can read device details.                                                                     |
| Status Code: `, followed by URL, Method and the response body` | The API answered with an unexpected status. This is the shared REST connector error. | Check the key, secret and domain.                                                                                        |

## Change history

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