> 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/b/beyondtrust-pra.md).

# BeyondTrust PRA

BeyondTrust Privileged Remote Access (PRA) gives privileged users remote access to systems. OctoXLabs reads the Jump Clients as devices and the PRA users as users.

## Use cases

* List Jump Clients that PRA knows with their public and private IPs (Devices).

```
Adapters = beyond-trust-pra AND PublicIps = *
```

* List PRA users and their email domains (Users).

```
Adapters = beyond-trust-pra AND Domain = *
```

## Before you begin

### Network

| Source              | Destination                      | Port | Protocol |
| ------------------- | -------------------------------- | ---- | -------- |
| OctoXLabs connector | PRA appliance (Domain you enter) | 443  | HTTPS    |

### Required permissions

| Scope or role | Permission                                                              | Needed for        |
| ------------- | ----------------------------------------------------------------------- | ----------------- |
| API account   | Read access to the Configuration API (Jump Clients and Users endpoints) | Devices and Users |

## Create credentials in BeyondTrust PRA

{% stepper %}
{% step %}

### Open API Configuration

In the PRA console, go to `/login` then **Management > API Configuration**.
{% endstep %}

{% step %}

### Create an API account

Create an API account. Copy the **Client ID** and the **Client Secret**.
{% endstep %}

{% step %}

### Check the access

The API account needs read access to the Configuration API: the Jump Clients and Users endpoints.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter     | Required | Type    | Default | Description                                                                             |
| ------------- | -------- | ------- | ------- | --------------------------------------------------------------------------------------- |
| Domain        | Yes      | String  |         | Hostname of the PRA appliance, for example `access.example.com`. Do not add `https://`. |
| Client ID     | Yes      | String  |         | OAuth2 client ID.                                                                       |
| Client Secret | Yes      | String  |         | OAuth2 client secret.                                                                   |
| Proxy         | No       | String  |         | Proxy as `host:port`.                                                                   |
| Timeout       | No       | Integer | 30      | Seconds to wait for API responses.                                                      |

## Troubleshooting

| Error message                                       | Cause                                                                                                                                  | Fix                                                                                                  |
| --------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| Request to failed after 5 retries (last status: `)` | The API kept answering 401 or 429.                                                                                                     | Check the credentials. For 429, wait and run the discovery again.                                    |
| Status Code: `, URL, Method`                        | The API answered with an unexpected HTTP status. The shared request code raises it and logs the status, URL, method and response body. | Check the URL, the credentials and the permissions listed above, then run the connection test again. |

## Change history

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