> 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/blackberry-unified-endpoint-management.md).

# BlackBerry Unified Endpoint Management

BlackBerry Unified Endpoint Management manages mobile and endpoint devices. OctoXLabs reads the devices and the users from the UEM REST API.

## Use cases

* List managed devices with their model and manufacturer (Devices).

```
Adapters = blackberry-uem AND DeviceModel = *
```

* List UEM users and their email domains (Users).

```
Adapters = blackberry-uem AND Domain = *
```

## Before you begin

### Network

| Source              | Destination                 | Port                 | Protocol                         |
| ------------------- | --------------------------- | -------------------- | -------------------------------- |
| OctoXLabs connector | UEM server (Host you enter) | 18084 (configurable) | HTTPS (HTTP if Is Secure is off) |

### Required permissions

| Scope or role             | Permission             | Needed for        |
| ------------------------- | ---------------------- | ----------------- |
| UEM administrator account | Read devices and users | Devices and Users |

## Create credentials in BlackBerry Unified Endpoint Management

{% stepper %}
{% step %}

### Get the tenant ID

Ask your BlackBerry UEM administrator for the tenant ID of the UEM domain. It was set during the UEM installation.
{% endstep %}

{% step %}

### Use an administrator login

Use the username and password of a UEM administrator created in the BlackBerry UEM management console.
{% endstep %}

{% step %}

### Pick the provider type

Choose how the account authenticates: **AD** (Active Directory), **LDAP** or **LOCAL** (local UEM account). For AD and LDAP also enter the logon domain.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter     | Required | Type    | Default | Description                                                                                  |
| ------------- | -------- | ------- | ------- | -------------------------------------------------------------------------------------------- |
| Host          | Yes      | String  |         | Address of the UEM server.                                                                   |
| Port          | No       | Integer | 18084   | Port of the REST API.                                                                        |
| Tenant ID     | Yes      | String  |         | Tenant ID of the UEM domain.                                                                 |
| Username      | Yes      | String  |         | UEM administrator.                                                                           |
| Password      | Yes      | String  |         | Password of that administrator. The connector sends it Base64 encoded, as the API requires.  |
| Domain        | Yes      | String  |         | Logon domain. Used for AD and LDAP. The serializer requires a value for every provider type. |
| Provider Type | No       | String  | LOCAL   | `AD`, `LDAP` or `LOCAL`.                                                                     |
| Is Secure     | No       | Boolean | True    | Use HTTPS.                                                                                   |
| Timeout       | No       | Integer | 30      | Seconds to wait for API responses.                                                           |

## Troubleshooting

| Error message                                          | Cause                                                                                                                                  | Fix                                                                                                  |
| ------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| Failed to fetch data:                                  | A list request did not return 200.                                                                                                     | Check the tenant ID and the account rights.                                                          |
| Invalid JSON response while fetching data (status=...) | The response is not JSON.                                                                                                              | Check host, port and Is Secure.                                                                      |
| Request failed after 5 retries for url                 | The API kept answering 401.                                                                                                            | Check the username, password and provider type.                                                      |
| 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

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