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

# KnowBe4

KnowBe4 is a security awareness training and phishing simulation platform. OctoXLabs reads the users of your KnowBe4 account and adds them to the user inventory.

## Use cases

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

```
Adapters = knowbe4 AND NOT Adapters = active-directory
```

* **Review users by email domain.** The domain is taken from the email address.

```
Adapters = knowbe4 AND NOT Domain = <your domain>
```

## Before you begin

### Network

| Source              | Destination                                                                                                                    | Port | Protocol |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------ | ---- | -------- |
| OctoXLabs connector | us.api.knowbe4.com, eu.api.knowbe4.com, ca.api.knowbe4.com, uk.api.knowbe4.com or de.api.knowbe4.com (the one for your region) | 443  | HTTPS    |

### Required permissions

Not verified: the sources do not name a role. The API token must be able to list users.

## Create credentials in KnowBe4

{% stepper %}
{% step %}

### Open Account Settings

Sign in to KnowBe4 and open [Account Settings](https://training.knowbe4.com/account/info).
{% endstep %}

{% step %}

### Find the API section

Open the API section. You can see your API key and generate a new key if needed.
{% endstep %}

{% step %}

### Note your region

Note the region of your account: US, EU, CA, UK or DE.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter | Required | Type    | Default | Description                                                                                                                                                                              |
| --------- | -------- | ------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Domain    | No       | String  | EU      | Region of your KnowBe4 account. The code accepts `US`, `EU`, `CA`, `UK` or `DE` and maps it to the matching `*.api.knowbe4.com` host. The baseline describes this field as a domain URL. |
| API Token | Yes      | String  | None    | KnowBe4 API token.                                                                                                                                                                       |
| Timeout   | No       | Integer | 30      | Seconds to wait for an API response.                                                                                                                                                     |

## Troubleshooting

| Error message                                                  | Cause                                                                                   | Fix                                                                                            |
| -------------------------------------------------------------- | --------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| Status Code: `, followed by URL, Method and the response body` | The API answered with a status other than 200. This is the shared REST connector error. | Read the status code and body in the message, then check the credentials, permissions and URL. |

## Change history

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