> 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-internet-access.md).

# Zscaler Internet Access

Zscaler Internet Access (ZIA) is the cloud secure web gateway of Zscaler. OctoXLabs reads the devices in device groups and the ZIA users. This page covers only ZIA, not Private Access, Client Connector, Identity or Digital Experience.

## Use cases

* List all devices and users that ZIA knows.

```
Adapters = zscaler
```

## Before you begin

### Network

| Source              | Destination                                           | Port             | Protocol |
| ------------------- | ----------------------------------------------------- | ---------------- | -------- |
| OctoXLabs connector | Your ZIA cloud API host (default `zsapi.zscaler.net`) | 443              | HTTPS    |
| OctoXLabs connector | HTTP proxy (optional)                                 | Set in **Proxy** | HTTP     |

Example API hosts: `zsapi.zscalerbeta.net`, `zsapi.zscalerone.net`, `zsapi.zscalertwo.net`, `zsapi.zscalerthree.net`, `zsapi.zscaler.net`, `zsapi.zscloud.net`.

### Required permissions

| Scope or role                                                         | Permission | Needed for                          |
| --------------------------------------------------------------------- | ---------- | ----------------------------------- |
| Admin role with the **Authentication Configuration** functional scope | View       | Seeing the base URL and the API key |
| API admin account                                                     | Read       | Users and devices                   |

Your organization must have an active API subscription and an enabled API key.

## Create credentials in Zscaler Internet Access

{% stepper %}
{% step %}

### Open the key page

Sign in to the ZIA Admin Portal. Go to **Administration > Cloud Service API Key Security**.
{% endstep %}

{% step %}

### Check the role

The admin must have a role that includes the **Authentication Configuration** functional scope to see this page.
{% endstep %}

{% step %}

### Copy the values

On the **Cloud Service API Key** tab copy the base URL and the API key from the table.
{% endstep %}

{% step %}

### Use an API admin account

Enter the email address and the password of the API admin account.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter  | Required | Type    | Default           | Description                                                                   |
| ---------- | -------- | ------- | ----------------- | ----------------------------------------------------------------------------- |
| Domain     | No       | Text    | zsapi.zscaler.net | Base domain of the ZIA API.                                                   |
| Username   | Yes      | Text    |                   | Email of the API admin account.                                               |
| Password   | Yes      | Text    |                   | Password of the API admin account.                                            |
| API Key    | Yes      | Text    |                   | Cloud Service API key. The adapter sends an obfuscated form with a timestamp. |
| Proxy      | No       | Text    |                   | Proxy in `host:port` format.                                                  |
| Is Secure? | No       | Boolean | True              | Use HTTPS.                                                                    |

## Troubleshooting

| Error message | Cause                                 | Fix                                                                                                           |
| ------------- | ------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| Not verified  | The adapter has no custom error text. | Check that the API subscription is active and the key is enabled, then check the user name, password and key. |

## Change history
