> 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/o/omnissa-one-uem.md).

# Omnissa One UEM

Omnissa One UEM (Workspace ONE UEM) is an endpoint management platform for mobile devices and computers. OctoXLabs reads the managed devices and, optionally, their installed applications, and adds them to the device inventory.

## Use cases

* **List devices managed by One UEM.** Review the enrolled device inventory.

```
Adapters = omnissa-one-uem
```

* **Find managed devices that your EDR does not see.** Replace the second adapter with your own tool. How devices are matched depends on your device merge settings.

```
Adapters = omnissa-one-uem AND NOT Adapters = crowdstrike
```

* **Review installed software.** Turn on Fetch applications, then use the installed software on the device.

## Before you begin

### Network

| Source              | Destination                        | Port | Protocol |
| ------------------- | ---------------------------------- | ---- | -------- |
| OctoXLabs connector | UEM API host (Ip parameter)        | 443  | HTTPS    |
| OctoXLabs connector | OAuth token URL host (oauth2 only) | 443  | HTTPS    |

Enter the host name only, without `https://` or `/api`. TLS certificates are not verified. If a proxy is set, requests go through it.

### Required permissions

| Scope or role                                          | Permission | Needed for                                 |
| ------------------------------------------------------ | ---------- | ------------------------------------------ |
| OAuth client role with read access to Devices          | Read       | Listing devices                            |
| OAuth client role with read access to Enrollment Users | Read       | Enrollment users, as named in the baseline |
| Administrator account (basic authentication)           | Read       | Listing devices and applications           |

## Create credentials in Omnissa One UEM

{% stepper %}
{% step %}

### Open OAuth Client Management

In the UEM console go to **Groups & Settings**, then **Configurations**, then **OAuth Client Management**.
{% endstep %}

{% step %}

### Add a client

Select **Add**, give the client a descriptive name and choose the organization group the adapter should read.
{% endstep %}

{% step %}

### Assign a role

Assign a role that grants read access to **Devices** and **Enrollment Users**.
{% endstep %}

{% step %}

### Copy the credentials

Save the client. Copy the **Client ID** and **Client Secret** before you close the dialog. The secret is shown only once.
{% endstep %}

{% step %}

### Find the token URL and tenant code

The token URL is the token endpoint for your data centre, for example `https://uat.uemauth.vmwservices.com/connect/token`. The correct host for your region is in the Omnissa UEM documentation. The tenant code (REST API key) is under **Groups & Settings**, **All Settings**, **System**, **Advanced**, **API**, **REST API**.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
Use basic authentication only for older on-premises environments where an OAuth client cannot be created.
{% endhint %}

## Connection parameters

| Parameter              | Required       | Type    | Default | Description                                                                                                        |
| ---------------------- | -------------- | ------- | ------- | ------------------------------------------------------------------------------------------------------------------ |
| Ip                     | Yes            | String  | None    | API server host, for example `cn1831.awmdm.com`. No scheme and no `/api`.                                          |
| Port                   | No             | Integer | 443     | Port of the UEM API.                                                                                               |
| Is secure              | No             | Boolean | True    | Send requests over HTTPS.                                                                                          |
| Authentication type    | No             | Choice  | oauth2  | `oauth2` or `basic`.                                                                                               |
| OAuth token URL        | Yes for oauth2 | String  | None    | Token endpoint of your data centre.                                                                                |
| Client id              | Yes for oauth2 | String  | None    | Client ID of the OAuth client.                                                                                     |
| Client secret          | Yes for oauth2 | String  | None    | Client secret of the OAuth client.                                                                                 |
| Username               | Yes for basic  | String  | None    | UEM administrator account.                                                                                         |
| Password               | Yes for basic  | String  | None    | Password of that account.                                                                                          |
| Tenant code            | Yes for basic  | String  | None    | REST API key, sent as the `aw-tenant-code` header. Also sent with oauth2 when set.                                 |
| Fetch applications     | No             | Boolean | False   | Makes one extra request per device to read installed applications. Increases discovery time on large environments. |
| Use serial as hostname | No             | Boolean | False   | Uses the serial number as the primary identifier instead of the host name.                                         |
| Thread count           | No             | Integer | 32      | Parallel requests for application data. Allowed 1 to 32.                                                           |
| Sleep time             | No             | Integer | None    | Delay in seconds between parallel requests. Minimum 0.                                                             |
| 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.                                                                               |

If a required value for the chosen authentication type is missing, validation fails with " required when auth\_type is ."

## Troubleshooting

| Error message                                                  | Cause                                                                                | Fix                                                                              |
| -------------------------------------------------------------- | ------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------- |
| required when auth\_type is .                                  | A parameter needed for the chosen authentication type is empty.                      | Fill in the listed fields.                                                       |
| Max retries exceeded for {url}                                 | The API kept answering 401 (oauth2) or 429.                                          | Check the client credentials and role, or run discovery later.                   |
| Status Code: `, followed by URL, Method and the response body` | The API answered with an unexpected status. This is the shared REST connector error. | Read the status code and body, then check the credentials, tenant code and host. |

## Change history

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