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

# Okta

Okta is an identity and access management service. OctoXLabs reads the users of your Okta organization and adds them to the user inventory.

## Use cases

* **List Okta users.** Review every identity that Okta holds.

```
Adapters = okta
```

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

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

## Before you begin

### Network

| Source              | Destination                   | Port | Protocol |
| ------------------- | ----------------------------- | ---- | -------- |
| OctoXLabs connector | Your Okta host (IP parameter) | 443  | HTTPS    |

The connector builds the URL as `https://<IP>/api/v1/users`. The Port and Is Secure? values in the baseline are not used in the URL. TLS certificates are not verified. If a proxy is set, requests go through it.

### Required permissions

| Scope or role                 | Permission | Needed for    |
| ----------------------------- | ---------- | ------------- |
| Rights of the API token owner | Read       | Listing users |

The baseline does not name a role or scope. The token acts with the rights of the account that created it.

## Create credentials in Okta

{% stepper %}
{% step %}

### Open the API page

In Okta, open the **Applications/APIs** page, as named in the baseline.
{% endstep %}

{% step %}

### Create the API key

Create an API key (token) and copy it. Keep it secret.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter  | Required | Type    | Default | Description                                                             |
| ---------- | -------- | ------- | ------- | ----------------------------------------------------------------------- |
| IP         | Yes      | String  | None    | Host name or IP address of the Okta organization.                       |
| Port       | No       | Integer | 443     | Port number. The connector does not use it when it builds the Okta URL. |
| API Key    | Yes      | String  | None    | Okta API token. Sent as `Authorization: SSWS <token>`.                  |
| Proxy      | No       | String  | None    | Proxy address, used as `http://<value>` for HTTP and HTTPS.             |
| Is Secure? | No       | Boolean | True    | Accepted by the form. The connector always uses 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` | Okta answered with a status other than 200. This is the shared REST connector error. | Read the status code and body, then check the API token and host. |

## Change history

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