> 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/d/datapatrol.md).

# DataPatrol

DataPatrol is a data protection product with a server that manages users and their machines. OctoXLabs uses it to add the users and the machines found under them, with agent version and last logged in user, to the inventory.

## Use cases

* Find machines that run the DataPatrol agent and compare them with your endpoint inventory.

```
Adapters = datapatrol
```

* Find DataPatrol machines that are not seen by your EDR.

```
Adapters = datapatrol AND NOT Adapters = falcon-crowdstrike
```

## Before you begin

### Network

| Source              | Destination       | Port               | Protocol                         |
| ------------------- | ----------------- | ------------------ | -------------------------------- |
| OctoXLabs connector | DataPatrol server | 443 (configurable) | HTTPS (HTTP if Is Secure is off) |

### Required permissions

| Scope or role          | Permission | Needed for                 |
| ---------------------- | ---------- | -------------------------- |
| Registered application | Read       | User details with machines |

Not verified: which DataPatrol role the registered application needs.

## Create credentials in DataPatrol

{% stepper %}
{% step %}

### Open Apps Registration

In DataPatrol, go to **Admin Panel** > **Integration** > **Apps Registration**.
{% endstep %}

{% step %}

### Create the application

Click **+ Create**, complete the fields and save.
{% endstep %}

{% step %}

### Copy the values

DataPatrol generates a Client ID, a Tenant UID and a Client Secret. The secret is shown only once and only a hash is stored. Copy it at once. If you lose it, regenerate the application.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter     | Required | Type              | Default | Description                                                                 |
| ------------- | -------- | ----------------- | ------- | --------------------------------------------------------------------------- |
| Domain        | Yes      | String            | None    | Host name or IP of the DataPatrol server, without scheme or trailing slash. |
| Port          | No       | Integer           | `443`   | Server port.                                                                |
| Is Secure     | No       | Boolean           | `True`  | Use HTTPS.                                                                  |
| Client ID     | Yes      | String            | None    | Application id (GUID).                                                      |
| Client Secret | Yes      | String            | None    | Secret created with the client id.                                          |
| Tenant UID    | Yes      | String            | None    | Tenant identifier of the application.                                       |
| Proxy         | No       | String            | None    | Proxy, used as `http://<proxy>`.                                            |
| Timeout       | No       | Integer (seconds) | `30`    | Time to wait for API responses.                                             |

## Troubleshooting

| Error message                    | Cause                                 | Fix                                               |
| -------------------------------- | ------------------------------------- | ------------------------------------------------- |
| `Max retries exceeded for <url>` | The server kept answering 401 or 429. | Check the credentials and the load on the server. |

## Change history

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