> 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/w/wallix-trustelem.md).

# WALLIX Trustelem

WALLIX Trustelem is an identity provider. OctoXLabs runs a Trustelem API script that lists users. This adds users, their administrator status and group memberships to the inventory.

## Use cases

* List all Trustelem users.

```
Adapters = wallix-trustelem
```

## Before you begin

### Network

| Source              | Destination                     | Port             | Protocol |
| ------------------- | ------------------------------- | ---------------- | -------- |
| OctoXLabs connector | `admin.trustelem.com` (default) | 443              | HTTPS    |
| OctoXLabs connector | HTTP proxy (optional)           | Set in **Proxy** | HTTP     |

The connector outbound IP address must be on the allowed IP list of the API key.

### Required permissions

| Scope or role                           | Permission     | Needed for |
| --------------------------------------- | -------------- | ---------- |
| API key allowed to run the users script | Execute script | Users      |

The script calls the built-in `api.listUsers`.

## Create credentials in WALLIX Trustelem

{% stepper %}
{% step %}

### Create the script

On the **Scripts** page click **+ New script**. In the body call `api.listUsers`. If you use `w.JSON(api.listUsers({ withGroups: true }))`, group memberships are returned too.
{% endstep %}

{% step %}

### Create an API key

Click **+ New API key**. Allow it to run the script. Note the **KEY ID** shown on the **Scripts** page.
{% endstep %}

{% step %}

### Copy the bearer token

On the key row, under **ACCESS CONTROL**, click the eye icon next to **Bearer token** and copy the value.
{% endstep %}

{% step %}

### Allow the connector IP

Under **ACCESS CONTROL**, add the outbound IP address of the connector to the allowed IP list.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter         | Required | Type    | Default             | Description                                           |
| ----------------- | -------- | ------- | ------------------- | ----------------------------------------------------- |
| Domain            | No       | Text    | admin.trustelem.com | Host that serves the API scripts.                     |
| Key ID            | Yes      | Text    |                     | Value of the KEY ID column. Used in the endpoint URL. |
| Users script name | Yes      | Text    |                     | Name of the script that lists users.                  |
| API Key           | Yes      | Text    |                     | Bearer token of the API key.                          |
| Proxy             | No       | Text    |                     | Proxy in `host:port` format.                          |
| Timeout           | No       | Integer | 30                  | Seconds to wait for API responses.                    |

## Troubleshooting

| Error message                                | Cause                                                         | Fix                                                                         |
| -------------------------------------------- | ------------------------------------------------------------- | --------------------------------------------------------------------------- |
| Trustelem script did not return a user list: | The script returned an error or something that is not a list. | Check the script body, the script name, the key ID and the allowed IP list. |

## Change history

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