> 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/s/samsung-knox.md).

# Samsung Knox

Samsung Knox Manage is a mobile device management service for Samsung devices. OctoXLabs uses it to add activated devices and the Knox users to the inventory.

## Use cases

* List Samsung devices managed by Knox.

```
Adapters = samsung-knox
```

* Find managed devices that have not connected recently.

```
Adapters = samsung-knox AND NOT LastSeen last now-30d/d
```

## Before you begin

### Network

| Source              | Destination                                  | Port | Protocol |
| ------------------- | -------------------------------------------- | ---- | -------- |
| OctoXLabs connector | us01.manage.samsungknox.com (default domain) | 443  | HTTPS    |

### Required permissions

| Scope or role                              | Permission | Needed for                |
| ------------------------------------------ | ---------- | ------------------------- |
| Knox application registered for API access | Read       | Device list and user list |

Exact scopes: Not verified.

## Create credentials in Samsung Knox

Register an application in Samsung Knox to receive a client ID and a client secret. The source instructions do not give the click path. The client ID must be written as `{client_id}@{tenant_id}`, for example `myclient123@tenant456`.

## Connection parameters

| Parameter     | Required | Type   | Default                     | Description                                                  |
| ------------- | -------- | ------ | --------------------------- | ------------------------------------------------------------ |
| Domain        | Yes      | String | us01.manage.samsungknox.com | Base domain of the Samsung Knox API.                         |
| Client ID     | Yes      | String | None                        | Format `{client_id}@{tenant_id}`.                            |
| Client Secret | Yes      | String | None                        | Secret received when you registered the application.         |
| Proxy         | No       | String | None                        | Proxy as host:port. The connector prefixes it with http\://. |

## Troubleshooting

| Error message | Cause                                                                                                                                      | Fix                                                                                                                          |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- |
| API Error:    | The API returned a result code other than 0 (log message). The connector stops that fetch.                                                 | Read the message and check the credentials and the client ID format.                                                         |
| Status Code:  | The API answered with a status other than the one the connector expects. The message also lists the URL, the method and the response body. | Read the status code and the response body in the message, then check the credentials, the permissions and the network path. |

## Change history

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