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

# SafeConsole

SafeConsole manages secure USB storage devices. OctoXLabs uses it to add the managed drives and their last known address to the device inventory, and the console users to the user inventory.

## Use cases

* List devices that SafeConsole manages.

```
Adapters = safeconsole
```

* List SafeConsole users.

```
Adapters = safeconsole
```

## Before you begin

### Network

| Source              | Destination             | Port | Protocol |
| ------------------- | ----------------------- | ---- | -------- |
| OctoXLabs connector | Your SafeConsole domain | 443  | HTTPS    |

### Required permissions

| Scope or role                            | Permission     | Needed for                                 |
| ---------------------------------------- | -------------- | ------------------------------------------ |
| API options enabled by the account owner | Not applicable | Server setting (General > Server Settings) |
| User account that owns the token         | Read           | Device list and user search                |

Exact role needed by the token owner: Not verified.

## Create credentials in SafeConsole

{% stepper %}
{% step %}

### Enable API options

The account owner makes sure the API options are enabled in **General > Server Settings**.
{% endstep %}

{% step %}

### Open API Tokens

Log in and go to your user name, then **Profile Settings > API Tokens**.
{% endstep %}

{% step %}

### Generate the token

Click **Generate New Token**, give it a name and optionally set an expiration date (default 90 days).
{% endstep %}

{% step %}

### Copy the token

Copy and store the token before you close the window.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter | Required | Type    | Default | Description                               |
| --------- | -------- | ------- | ------- | ----------------------------------------- |
| Domain    | Yes      | String  | None    | Base domain of your SafeConsole instance. |
| API Token | Yes      | String  | None    | API token.                                |
| Timeout   | No       | Integer | 30      | Seconds to wait for API responses.        |

## Troubleshooting

| Error message | Cause                                                                                                                                      | Fix                                                                                                                          |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- |
| 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 5.6.3.
{% endhint %}
