> 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-identity.md).

# Zscaler Identity

Zscaler Identity (ZIdentity) is the identity service of the Zscaler platform. OctoXLabs reads the users of your organization from the ZIdentity API. This adds login names, emails and display names to the identity inventory. This page covers only this product, not the other Zscaler adapters.

## Use cases

* List all ZIdentity users.

```
Adapters = zscaler-identity
```

## Before you begin

### Network

| Source              | Destination                                                                                              | Port             | Protocol |
| ------------------- | -------------------------------------------------------------------------------------------------------- | ---------------- | -------- |
| OctoXLabs connector | `<vanity domain>.zslogin.net` (`zsloginbeta.net` for the beta cloud)                                     | 443              | HTTPS    |
| OctoXLabs connector | OneAPI host of your cloud (`api.zsapi.net`, `api.zscaler.us`, `api.zscaler.net` or `api.beta.zsapi.net`) | 443              | HTTPS    |
| OctoXLabs connector | HTTP proxy (optional)                                                                                    | Set in **Proxy** | HTTP     |

### Required permissions

| Scope or role                                        | Permission | Needed for |
| ---------------------------------------------------- | ---------- | ---------- |
| Role on the API client that can read ZIdentity users | Read       | Users      |

## Create credentials in Zscaler Identity

{% stepper %}
{% step %}

### Open the admin portal

Sign in to the **ZIdentity Admin Portal**.
{% endstep %}

{% step %}

### Add an API client

Go to **Integration > API Clients**. Add a new API client with the **Client Secret** authentication type.
{% endstep %}

{% step %}

### Assign a role

Assign a role that can read the ZIdentity users.
{% endstep %}

{% step %}

### Save and copy

Save the client. Copy the Client ID and the Client Secret. The secret is shown only once.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter     | Required | Type    | Default       | Description                                                                                                                         |
| ------------- | -------- | ------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| Vanity Domain | Yes      | Text    |               | Subdomain of your Zscaler login URL. For `https://acme.zslogin.net` enter `acme`.                                                   |
| Client ID     | Yes      | Text    |               | Client ID of the API client.                                                                                                        |
| Client Secret | Yes      | Text    |               | Client secret of the API client.                                                                                                    |
| Cloud         | No       | Choice  | api.zsapi.net | `api.zsapi.net` (Commercial), `api.zscaler.us` (FedRAMP Moderate), `api.zscaler.net` (FedRAMP High) or `api.beta.zsapi.net` (Beta). |
| Per Page      | No       | Integer | 100           | Users per request. Min 1, max 1000.                                                                                                 |
| Proxy         | No       | Text    |               | Proxy in `host:port` format.                                                                                                        |
| Timeout       | No       | Integer | 30            | Seconds to wait for API responses.                                                                                                  |

## Troubleshooting

| Error message            | Cause                                    | Fix                                                               |
| ------------------------ | ---------------------------------------- | ----------------------------------------------------------------- |
| AuthenticationTokenError | The token call returned no access token. | Check the vanity domain, the cloud, the client ID and the secret. |

## Change history

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