> 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/o/opal.md).

# Opal

Opal is an access management platform. OctoXLabs reads the users of your Opal account and adds them to the user inventory.

## Use cases

* **List Opal users.** Review the users that Opal manages access for.

```
Adapters = opal
```

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

```
Adapters = opal AND NOT Adapters = active-directory
```

## Before you begin

### Network

| Source              | Destination                 | Port | Protocol |
| ------------------- | --------------------------- | ---- | -------- |
| OctoXLabs connector | api.opal.dev (IP parameter) | 443  | HTTPS    |

HTTPS is used when Is Secure? is on. TLS certificates are not verified.

### Required permissions

| Scope or role                        | Permission | Needed for    |
| ------------------------------------ | ---------- | ------------- |
| Opal Admin (can generate API tokens) | Read       | Listing users |

The baseline says API tokens can be generated by Opal Admins. It names no finer scope.

## Create credentials in Opal

{% stepper %}
{% step %}

### Open API Access Tokens

Sign in to Opal as an admin. Open **Settings**, then **API Access Tokens**.
{% endstep %}

{% step %}

### Create a token

Click **Create** and copy the token. Keep it secret.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter  | Required | Type    | Default      | Description                                              |
| ---------- | -------- | ------- | ------------ | -------------------------------------------------------- |
| IP         | No       | String  | api.opal.dev | Host of the Opal API.                                    |
| Port       | No       | Integer | 443          | Port number.                                             |
| API Key    | Yes      | String  | None         | Opal API token. Sent as `Authorization: Bearer <token>`. |
| Is Secure? | No       | Boolean | True         | Use HTTPS.                                               |
| Timeout    | No       | Integer | 30           | Seconds to wait for an API response.                     |

## Troubleshooting

| Error message                                                  | Cause                                                                                | Fix                                                           |
| -------------------------------------------------------------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------------- |
| Status Code: `, followed by URL, Method and the response body` | Opal answered with a status other than 200. This is the shared REST connector error. | Read the status code and body, then check the token and host. |

## Change history

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