> 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/c/cisco-duo.md).

# Cisco Duo

Cisco Duo provides multi-factor authentication and device trust for applications and VPNs. OctoXLabs reads the users and the endpoints known to your Duo account through the Admin API.

## Use cases

* **Find Duo users with no directory account.** List Duo users that are not found in Active Directory. How accounts are matched depends on your user merge settings.

```
Adapters = cisco-duo AND NOT Adapters = active-directory
```

* **Review Duo endpoints by operating system.**

```
Adapters = cisco-duo AND OS.Type = Windows
```

## Before you begin

### Network

| Source              | Destination                                            | Port | Protocol |
| ------------------- | ------------------------------------------------------ | ---- | -------- |
| OctoXLabs connector | Your Duo API hostname (`api-xxxxxxxx.duosecurity.com`) | 443  | HTTPS    |

### Required permissions

| Scope or role         | Permission                                | Needed for                  |
| --------------------- | ----------------------------------------- | --------------------------- |
| Admin API application | Grant read resource (users and endpoints) | Listing users and endpoints |

The baseline describes the Admin API for managing users and devices. The exact permission names are not given in the sources.

## Create credentials in Cisco Duo

{% stepper %}
{% step %}

### Open the Application Catalog

In the Duo Admin Panel, go to **Applications** and open the **Application Catalog**.
{% endstep %}

{% step %}

### Add the Admin API

Select **Admin API** and add the application. Duo shows the Integration Key, the Secret Key and the API Hostname.
{% endstep %}

{% step %}

### Copy the values

Copy the API Hostname (usually `api-xxxxxxxx.duosecurity.com`), the Integration Key and the Secret Key. Keep the Secret Key confidential.
{% endstep %}

{% step %}

### Find an existing Admin API

For an Admin API you already created, open **Applications** and click the Admin API to see its details. The Secret Key may have been shown only once. If you did not save it, generate a new key.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter       | Required | Type    | Default | Description                                                      |
| --------------- | -------- | ------- | ------- | ---------------------------------------------------------------- |
| API Hostname    | Yes      | String  | None    | Unique API server address of your Duo account, without a scheme. |
| Integration Key | Yes      | String  | None    | Public identifier of the Admin API application.                  |
| Secret Key      | Yes      | String  | None    | Private key used to sign API calls. Stored as a sensitive value. |
| Timeout         | No       | Integer | 30      | Seconds to wait for an API response. Advanced option.            |

## Troubleshooting

| Error message                                                  | Cause                                  | Fix                                                                                                     |
| -------------------------------------------------------------- | -------------------------------------- | ------------------------------------------------------------------------------------------------------- |
| Status Code: `, followed by URL, Method and the response body` | The API answered with an error status. | Check the API hostname, the keys and that the Admin API application allows reading users and endpoints. |

## Change history

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