> 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/k/kaseya-vsa.md).

# Kaseya VSA

Kaseya VSA is a remote monitoring and management (RMM) platform. OctoXLabs reads its managed agents and VSA users and adds them to the device and user inventories.

## Use cases

* **Find VSA agents missing from your EDR.** List devices managed by VSA that CrowdStrike does not report.

```
Adapters = kaseya-vsa AND NOT Adapters = falcon-crowdstrike
```

* **Find agents that stopped checking in.** Last seen comes from `LastCheckInTime`.

```
Adapters = kaseya-vsa AND NOT LastSeen last now-30d/d
```

* **List VSA users by email domain.** The domain is taken from the email address.

```
Adapters = kaseya-vsa AND Domain = <your domain>
```

## Before you begin

### Network

| Source              | Destination                          | Port | Protocol |
| ------------------- | ------------------------------------ | ---- | -------- |
| OctoXLabs connector | Kaseya VSA server (Domain parameter) | 443  | HTTPS    |

The connector always uses HTTPS. If a proxy is set, requests go through it.

### Required permissions

| Scope or role                      | Permission             | Needed for                                                                           |
| ---------------------------------- | ---------------------- | ------------------------------------------------------------------------------------ |
| REST API (Read, Write) token scope | Assign only this scope | All calls. Do not select Data Warehouse API, and do not select both scopes together. |

The scope is from the baseline. The code only sends read requests (GET).

## Create credentials in Kaseya VSA

{% stepper %}
{% step %}

### Open Users

In VSA, go to **System > User Security > Users**.
{% endstep %}

{% step %}

### Open Access Tokens

Select the user account and click the **Access Tokens** tab.
{% endstep %}

{% step %}

### Create the token

Click **New**. In **Scopes Assigned**, select **REST API (Read, Write)** only. Do not select **Data Warehouse API** or both options together.
{% endstep %}

{% step %}

### Save and copy

Click **Save** and copy the token immediately. The token is shown only once and cannot be recovered after you leave the page. It has a GUID format.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
See the vendor article [Use VSA Access Token API](https://helpdesk.kaseya.com/hc/en-gb/articles/4705556673169-Use-VSA-Access-Token-API) for details on Personal Access Tokens.
{% endhint %}

## Connection parameters

| Parameter   | Required | Type    | Default | Description                                                                           |
| ----------- | -------- | ------- | ------- | ------------------------------------------------------------------------------------- |
| Domain      | Yes      | String  | None    | Domain name or IP address of the Kaseya VSA server, for example `company.vsax.net`.   |
| Username    | Yes      | String  | None    | VSA username that created the PAT. It must be the same user that generated the token. |
| PAT Token   | Yes      | String  | None    | Personal Access Token in GUID format.                                                 |
| HTTPS Proxy | No       | String  | None    | Proxy address, used as `http://<value>` for HTTP and HTTPS.                           |
| Timeout     | No       | Integer | 30      | Seconds to wait for an API response.                                                  |

## Troubleshooting

| Error message                                                  | Cause                                                                                   | Fix                                                                                            |
| -------------------------------------------------------------- | --------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| Status Code: `, followed by URL, Method and the response body` | The API answered with a status other than 200. This is the shared REST connector error. | Read the status code and body in the message, then check the credentials, permissions and URL. |

## Change history

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