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

# CyberArk Identity

CyberArk Identity is a cloud identity platform. OctoXLabs reads its users through a report query and adds them to the user inventory.

## Use cases

* **Review CyberArk Identity users.** List every user reported by CyberArk Identity.

```
Adapters = cyberark-identity
```

## Before you begin

### Network

| Source              | Destination                                                              | Port         | Protocol |
| ------------------- | ------------------------------------------------------------------------ | ------------ | -------- |
| OctoXLabs connector | Tenant host (Domain parameter), for example `<tenant>.id.cyberark.cloud` | Not verified | HTTPS    |

Legacy tenants use `<tenant>.my.idaptive.app`.

### Required permissions

| Scope or role                                              | Permission | Needed for                 |
| ---------------------------------------------------------- | ---------- | -------------------------- |
| Role with the **Report Management** administrative right   | Read       | Running the user query     |
| OAuth2 Client app, **Run** permission for the service user | Run        | Requesting tokens          |
| Scope with a REST regex that allows `Redrock/query`        | Access     | Calling the query endpoint |

## Create credentials in CyberArk Identity

{% stepper %}
{% step %}

### Create the service user

In the Admin Portal, create a user and select **Is Service User** and **Is OAuth confidential client**.
{% endstep %}

{% step %}

### Create a role

Create a role with the **Report Management** administrative right. Add the service user to it.
{% endstep %}

{% step %}

### Add the OAuth2 Client app

Add an **OAuth2 Client** web app. Set the Client ID Type to **Confidential**, allow **Client Creds**, and give the service user the **Run** permission.
{% endstep %}

{% step %}

### Add a scope

Add a scope whose REST regex allows `Redrock/query`.
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
The token lifespan must be longer than 10 minutes.
{% endhint %}

## Connection parameters

| Parameter     | Required     | Type               | Default | Description                                                                                 |
| ------------- | ------------ | ------------------ | ------- | ------------------------------------------------------------------------------------------- |
| Domain        | Not verified | String             | None    | Host of your tenant URL.                                                                    |
| OAuth App ID  | Not verified | String             | None    | Application ID of the OAuth2 Client web app.                                                |
| Client ID     | Not verified | String             | None    | Name of the service user, for example `octoxlabs@tenant`.                                   |
| Client Secret | Not verified | String (sensitive) | None    | Password of the service user.                                                               |
| Scope         | No           | String             | Empty   | Scope name added to the OAuth2 Client app. When empty, every scope of the app is requested. |
| Page Size     | Not verified | Integer            | 1000    | Users requested per query.                                                                  |
| Proxy         | No           | String             | None    | Proxy URL.                                                                                  |
| Timeout       | Not verified | Integer            | 120     | Seconds to wait for API responses. Queries can take up to two minutes on large tenants.     |

## Troubleshooting

| Error message | Cause                        | Fix                                                                          |
| ------------- | ---------------------------- | ---------------------------------------------------------------------------- |
| Not verified  | No error text found in code. | Run the connection test and check the credentials, scope and token lifespan. |

## Change history

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