> 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/octoxlabs-users.md).

# OctoXLabs Users

This adapter reads the users of an OctoXLabs instance through its API and adds them to the user inventory. OctoXLabs uses it to bring the platform's own accounts into the user inventory.

## Use cases

* **List OctoXLabs platform users.** Review who has an account on the instance.

```
Adapters = octoxlabs-users
```

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

```
Adapters = octoxlabs-users AND NOT Adapters = active-directory
```

## Before you begin

### Network

| Source              | Destination                   | Port                         | Protocol                           |
| ------------------- | ----------------------------- | ---------------------------- | ---------------------------------- |
| OctoXLabs connector | OctoXLabs host (IP parameter) | Port parameter (example 443) | HTTPS (HTTP when Is Secure is off) |

TLS certificates are not verified on these requests.

### Required permissions

| Scope or role                           | Permission | Needed for    |
| --------------------------------------- | ---------- | ------------- |
| An API token whose owner can list users | Read       | Listing users |

The sources do not describe the exact role needed. See the TODO at the end of the page.

## Create credentials in OctoXLabs

{% stepper %}
{% step %}

### Get an API token

Create or copy an API token for your OctoXLabs instance. Keep it secret.
{% endstep %}

{% step %}

### Note the host

Note the IP address and port of the OctoXLabs host.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter           | Required | Type    | Default | Description                                  |
| ------------------- | -------- | ------- | ------- | -------------------------------------------- |
| IP                  | Yes      | String  | None    | IP address of the OctoXLabs host.            |
| Port                | Yes      | Integer | None    | Port of the OctoXLabs host, for example 443. |
| OctoXLabs API Token | Yes      | String  | None    | API token of the OctoXLabs instance.         |
| Is Secure?          | No       | Boolean | True    | Use HTTPS.                                   |
| Per Page            | No       | Integer | 100     | Number of users requested per page.          |

## Troubleshooting

| Error message                                                  | Cause                                                                                | Fix                                                          |
| -------------------------------------------------------------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------------ |
| Request to {url} failed after 10 attempts.                     | The host kept refusing connections or the request kept failing.                      | Check the IP, port, Is Secure and network path.              |
| Status Code: `, followed by URL, Method and the response body` | The API answered with an unexpected status. This is the shared REST connector error. | Read the status code and body, then check the token and URL. |

## Change history

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