> 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/x/xensam-xupervisor.md).

# Xensam Xupervisor

Xensam Xupervisor is an IT asset management platform. OctoXLabs reads the client inventory view and builds devices and their primary users from it. This adds hardware, operating system, warranty and organization data to the inventory.

## Use cases

* List all devices known to Xupervisor.

```
Adapters = xensam-xupervisor
```

* Find servers that are in your inventory but missing in Xupervisor. Replace `active-directory` with any other source that lists your servers.

```
Adapters = active-directory AND NOT Adapters = xensam-xupervisor
```

## Before you begin

### Network

| Source              | Destination                                                        | Port             | Protocol |
| ------------------- | ------------------------------------------------------------------ | ---------------- | -------- |
| OctoXLabs connector | Your Xupervisor API domain, for example `pladisapi.xupervisor.com` | 444              | HTTPS    |
| OctoXLabs connector | HTTP proxy (optional)                                              | Set in **Proxy** | HTTP     |

All API traffic must be routed through the approved VPN.

### Required permissions

| Scope or role                                     | Permission | Needed for                |
| ------------------------------------------------- | ---------- | ------------------------- |
| Viewer role                                       | Read       | Devices and users         |
| Access to the custom table `v_all_clients_custom` | Read       | Device and user inventory |

## Create credentials in Xensam Xupervisor

{% stepper %}
{% step %}

### Get the API key

Get the DreamFactory API key for your tenant. The frontend instructions do not describe where to find it.
{% endstep %}

{% step %}

### Prepare the account

Use an Xupervisor account with the **Viewer** role and access to `v_all_clients_custom`.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter | Required | Type    | Default | Description                                   |
| --------- | -------- | ------- | ------- | --------------------------------------------- |
| Domain    | Yes      | Text    |         | Xupervisor API domain. Requests use port 444. |
| API Key   | Yes      | Text    |         | Sent in the `X-DreamFactory-API-Key` header.  |
| Email     | Yes      | Text    |         | Email of the account used to sign in.         |
| Password  | Yes      | Text    |         | Account password.                             |
| Proxy     | No       | Text    |         | Proxy in `host:port` format.                  |
| Timeout   | No       | Integer | 30      | Seconds to wait for API responses.            |

## Troubleshooting

| Error message | Cause                                 | Fix                                                                      |
| ------------- | ------------------------------------- | ------------------------------------------------------------------------ |
| Not verified  | The adapter has no custom error text. | Check the API key, the account role, the table access and the VPN route. |

## Change history

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