> 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/r/rapid7-insight-account-platform.md).

# Rapid7 Insight Account Platform

The Rapid7 Insight Account Platform manages user accounts for the Rapid7 Command Platform. OctoXLabs uses it to add platform users, their admin status and last login to the user inventory.

## Use cases

* List Rapid7 platform users and their admin status.

```
Adapters = rapid7-insight-account-platform AND AdminStatus = *
```

* Find platform users who share an email domain with your directory users.

```
Adapters = rapid7-insight-account-platform AND Domain = example.com
```

## Before you begin

### Network

| Source              | Destination                                          | Port | Protocol |
| ------------------- | ---------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | Regional host, for example eu.api.insight.rapid7.com | 443  | HTTPS    |

### Required permissions

| Scope or role          | Permission   | Needed for                                |
| ---------------------- | ------------ | ----------------------------------------- |
| Platform Administrator | User API key | User management endpoint (`/api/1/users`) |

The key must be a User API key created by a Platform Administrator.

## Create credentials in Rapid7 Insight Account Platform

{% stepper %}
{% step %}

### Open API keys

In the Rapid7 Command Platform, click the gear icon at the top right and select **API Keys**.
{% endstep %}

{% step %}

### Create a User API key

Create a **User API Key** under a Platform Administrator account.
{% endstep %}

{% step %}

### Copy the key

Copy the key right away. It is shown only once.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter | Required | Type    | Default | Description                                                                                                                                                                                                                        |
| --------- | -------- | ------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Region    | Yes      | Choice  | Europe  | Data hosting region of your Insight account. The connector resolves the API host from it. Values: United States - 1, United States - 2, United States - 3, Europe, Canada, Australia, Japan, Middle East (UAE), India (Hyderabad). |
| API Key   | Yes      | String  | None    | User API key sent in the X-Api-Key header.                                                                                                                                                                                         |
| Proxy     | No       | String  | None    | Proxy as host:port. The connector prefixes it with http\://.                                                                                                                                                                       |
| Timeout   | No       | Integer | 30      | Seconds to wait for API responses.                                                                                                                                                                                                 |

## Troubleshooting

| Error message            | Cause                                                                                                                                      | Fix                                                                                                                          |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- |
| Max retries exceeded for | The API returned HTTP 429 five times in a row.                                                                                             | Wait and retry. The connector honors Retry-After up to 60 seconds.                                                           |
| Status Code:             | The API answered with a status other than the one the connector expects. The message also lists the URL, the method and the response body. | Read the status code and the response body in the message, then check the credentials, the permissions and the network path. |

## Change history

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