> 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-password-safe.md).

# BeyondTrust Password Safe

BeyondTrust Password Safe stores and rotates privileged credentials for managed systems. OctoXLabs reads the managed systems as devices.

## Use cases

* List managed systems with their domain names.

```
Adapters = beyond-trust-password-safe AND Domain = *
```

* Find managed systems that have an IP address.

```
Adapters = beyond-trust-password-safe AND IpAddresses = *
```

## Before you begin

### Network

| Source              | Destination                                                | Port               | Protocol                         |
| ------------------- | ---------------------------------------------------------- | ------------------ | -------------------------------- |
| OctoXLabs connector | Password Safe appliance (IP address or hostname you enter) | 443 (configurable) | HTTPS (HTTP if Is Secure is off) |

### Required permissions

| Scope or role    | Permission                                 | Needed for |
| ---------------- | ------------------------------------------ | ---------- |
| API registration | Access to the Managed Systems API endpoint | Devices    |
| RunAs user       | Read on managed systems                    | Devices    |

## Create credentials in BeyondTrust Password Safe

{% stepper %}
{% step %}

### Open API registrations

In BeyondTrust Password Safe, go to **Configuration > General > API Registrations**.
{% endstep %}

{% step %}

### Create or copy a key

Create an API key or retrieve an existing one. The registration must have access to the Managed Systems endpoint.
{% endstep %}

{% step %}

### Choose the user

Use an account with API access and read permission on managed systems. The adapter signs in with it through the RunAs method.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter | Required | Type    | Default | Description                              |
| --------- | -------- | ------- | ------- | ---------------------------------------- |
| IP        | Yes      | String  |         | IP address or hostname of the appliance. |
| Port      | No       | Integer | 443     | Port of the API.                         |
| API Key   | Yes      | String  |         | API registration key.                    |
| Username  | Yes      | String  |         | RunAs account.                           |
| Password  | Yes      | String  |         | Password of that account.                |
| Timeout   | No       | Integer | 120     | Seconds to wait for API responses.       |
| Is Secure | No       | Boolean | True    | Use HTTPS.                               |

## Troubleshooting

| Error message                | Cause                                                                                                                                  | Fix                                                                                                  |
| ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| 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 %}
