> 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/bmc-helix-portal.md).

# BMC Helix Portal

BMC Helix Portal is the console of the BMC Helix cloud services. OctoXLabs reads the portal users (people, API users and external people) through the IMS API.

## Use cases

* List portal users and their email domains.

```
Adapters = bmc-portal AND Domain = *
```

* List portal users by user name.

```
Adapters = bmc-portal AND Username = *
```

## Before you begin

### Network

| Source              | Destination                                                 | Port | Protocol |
| ------------------- | ----------------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | Your BMC Helix Portal host, for example `myorg.helixops.ai` | 443  | HTTPS    |

### Required permissions

| Scope or role             | Permission | Needed for          |
| ------------------------- | ---------- | ------------------- |
| List permission for users | List       | `/ims/api/v1/users` |

## Create credentials in BMC Helix Portal

{% stepper %}
{% step %}

### Open the console

In the BMC Helix Portal console go to **Access keys for programmatic access** (or **User-level access keys**).
{% endstep %}

{% step %}

### Generate a key pair

Generate a new key pair for a programmatic API user. Copy the access key and the secret key. The secret is shown only once.
{% endstep %}

{% step %}

### Check the permission

The API user needs the **list** permission for users.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter         | Required | Type    | Default | Description                                                                      |
| ----------------- | -------- | ------- | ------- | -------------------------------------------------------------------------------- |
| Domain            | Yes      | String  |         | Portal host only, without `https://` or a path, for example `myorg.helixops.ai`. |
| Access Key        | Yes      | String  |         | Access key of the key pair.                                                      |
| Access Secret Key | Yes      | String  |         | Secret key of the pair.                                                          |
| Proxy             | No       | String  |         | Proxy as `host:port`.                                                            |
| Timeout           | No       | Integer | 30      | Seconds to wait for API responses.                                               |

## Troubleshooting

| Error message                | Cause                                                                                                                                  | Fix                                                                                                  |
| ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| Max retries exceeded for     | The API kept answering 401.                                                                                                            | Check the key pair. The adapter logs in again when the 15 minute token expires.                      |
| 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
