> 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/beyond-trust-beyond-insight.md).

# Beyond Trust Beyond Insight

BeyondTrust BeyondInsight is the management console of the BeyondTrust privileged access products. OctoXLabs reads the assets of its workgroups as devices.

## Use cases

* List Windows assets that BeyondInsight manages.

```
Adapters = beyond-trust-beyond-insight AND OS.Type = Windows
```

* Find assets with a known domain name.

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

## Before you begin

### Network

| Source              | Destination                               | Port               | Protocol                         |
| ------------------- | ----------------------------------------- | ------------------ | -------------------------------- |
| OctoXLabs connector | BeyondInsight host (IP address you enter) | 443 (configurable) | HTTPS (HTTP if Is Secure is off) |

### Required permissions

| Scope or role                     | Permission                                | Needed for     |
| --------------------------------- | ----------------------------------------- | -------------- |
| API registration (API key policy) | Active, with the connector IP allowed     | Authentication |
| RunAs user                        | Access to the workgroups and their assets | Devices        |

## Create credentials in Beyond Trust Beyond Insight

{% stepper %}
{% step %}

### Sign in

Log in to the web console as a BeyondTrust Administrator.
{% endstep %}

{% step %}

### Open API registrations

Go to **Configuration > General > API registrations**.
{% endstep %}

{% step %}

### Create the policy

Click **Create API Registration**, then **API key Policy**. Name the policy and choose the authentication rule options for your environment.
{% endstep %}

{% step %}

### Allow the connector

Click **Add Authentication Rule** and list the IP addresses that the API calls come from. If a proxy, forwarder or load balancer sits in between, allow it too. Without forwarding rules the source address does not match the requesting machine.
{% endstep %}

{% step %}

### Activate

When the rule is saved, the API registration becomes **Active**. Copy the API key.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter         | Required | Type    | Default | Description                           |
| ----------------- | -------- | ------- | ------- | ------------------------------------- |
| IP                | Yes      | String  |         | IP address of the BeyondInsight host. |
| Port              | No       | Integer | 443     | Port of the API.                      |
| API Key           | Yes      | String  |         | Key of the API registration.          |
| Username          | Yes      | String  |         | Account used for the RunAs sign-in.   |
| Password          | Yes      | String  |         | Password of that account.             |
| Ignore Workgroups | No       | List    | \[]     | Workgroup IDs to exclude.             |
| 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
