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

# CyberArk Remote Access

CyberArk Remote Access provides secure access for vendors and internal users. OctoXLabs reads invited vendors and internal users and adds them to the user inventory.

## Use cases

* **Review remote access accounts.** List every user reported by CyberArk Remote Access.

```
Adapters = cyberark-remote-access
```

## Before you begin

### Network

| Source              | Destination                                                                                   | Port         | Protocol |
| ------------------- | --------------------------------------------------------------------------------------------- | ------------ | -------- |
| OctoXLabs connector | `auth.<data center>` and the matching API host of the data center in the service account file | Not verified | HTTPS    |

The data center is read from `discoveryURI` in the service account file, so token and API calls go to the same region. Supported data centers:

| Domain        | Region    |
| ------------- | --------- |
| alero.io      | US        |
| alero.eu      | EU        |
| ca.alero.io   | Canada    |
| au.alero.io   | Australia |
| uk.alero.io   | London    |
| in.alero.io   | India     |
| sg.alero.io   | Singapore |
| ae.alero.io   | UAE       |
| il.alero.io   | Israel    |
| it.alero.io   | Italy     |
| id.alero.io   | Indonesia |
| jp.alero.io   | Japan     |
| usw\.alero.io | US West   |
| br.alero.io   | Brazil    |

### Required permissions

| Scope or role | Permission | Needed for                                         |
| ------------- | ---------- | -------------------------------------------------- |
| Viewer        | Read       | Reading all tenant information without changing it |

See [Service accounts](https://docs.cyberark.com/remote-access-on-prem/latest/en/content/webservices/serviceaccounts.htm).

## Create credentials in CyberArk Remote Access

{% stepper %}
{% step %}

### Open service accounts

In the Remote Access portal, go to **Identities** > **Service accounts** and click **Create Service Account**.
{% endstep %}

{% step %}

### Choose the role

Choose the **Viewer** role.
{% endstep %}

{% step %}

### Keep the auth type

Keep **Private Key Signing** as the service account auth type.
{% endstep %}

{% step %}

### Save the file

Click **Create Service Account** and save the **.json** file.
{% endstep %}
{% endstepper %}

{% hint style="danger" %}
The file is the only copy of the private key. Store it securely. If it is lost, create a new service account.
{% endhint %}

## Connection parameters

| Parameter            | Required     | Type         | Default | Description                                                                                                                            |
| -------------------- | ------------ | ------------ | ------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| Tenant ID            | Not verified | String       | None    | ID of the Remote Access tenant. Combined with the service account ID as `TenantID.ServiceAccountID.ExternalServiceAccount` to sign in. |
| Service Account File | Not verified | File (.json) | None    | File downloaded when the service account was created. It holds the service account ID, the private key and the discovery URL.          |
| Fetch Details        | Not verified | Boolean      | true    | Reads first and last name, group memberships and the last login of vendors. Makes one extra request per user.                          |
| Proxy                | No           | String       | None    | Proxy URL.                                                                                                                             |
| Thread Count         | Not verified | Integer      | 32      | Parallel threads for reading details. Minimum 1, maximum 32.                                                                           |
| Sleep Time           | Not verified | Integer      | 0       | Seconds between thread batches. Increase it on rate limit errors.                                                                      |
| Timeout              | Not verified | Integer      | 30      | Seconds to wait for API responses.                                                                                                     |

{% hint style="info" %}
Invited vendors and internal users are both collected. A person in both lists is kept as two records. Internal users whose username is not an email address are skipped.
{% endhint %}

## Troubleshooting

| Error message | Cause                        | Fix                                                                           |
| ------------- | ---------------------------- | ----------------------------------------------------------------------------- |
| Not verified  | No error text found in code. | Check the service account file, tenant ID and rate limits (raise Sleep Time). |

## Change history

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