> 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/f/forti-edr.md).

# Forti EDR

Forti EDR is Fortinet's endpoint detection and response product. OctoXLabs reads the collectors (agents) registered in the management console as devices and the console users as users.

## Use cases

* List all endpoints that run a Forti EDR collector.

```
Adapters = forti-edr
```

* Find Active Directory computers that have no Forti EDR collector.

```
Adapters = active-directory AND NOT Adapters = forti-edr
```

## Before you begin

### Network

| Source              | Destination                             | Port                                   | Protocol                           |
| ------------------- | --------------------------------------- | -------------------------------------- | ---------------------------------- |
| OctoXLabs connector | Forti EDR management console (REST API) | Set in the Port parameter (no default) | HTTPS (HTTP when Is secure is off) |

### Required permissions

| Scope or role | Permission           | Needed for    |
| ------------- | -------------------- | ------------- |
| REST API role | Assigned to the user | All API calls |

A user without the REST API role gets a 401 Unauthorized error. The Admin role does not include the REST API role.

## Create credentials in Forti EDR

{% stepper %}
{% step %}

### Create a user with the REST API role

In the Forti EDR console, create a user and assign the **REST API** role. Note the username and password.

{% hint style="info" %}
The Admin role does not give access to the REST API layer. Calls from a user without the REST API role return 401.
{% endhint %}
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter | Required                             | Type             | Default | Description                                    |
| --------- | ------------------------------------ | ---------------- | ------- | ---------------------------------------------- |
| Ip        | No (needed to build the URL)         | Text             | None    | IP address or host name of the Forti EDR host. |
| Port      | No (set it if not the standard port) | Text             | None    | Port number.                                   |
| Username  | Yes                                  | Text             | None    | Account name.                                  |
| Password  | Yes                                  | Text (sensitive) | None    | Account password.                              |
| Is secure | No                                   | Boolean          | True    | Use SSL. Advanced.                             |

## Troubleshooting

| Error message | Cause                                        | Fix                                                                        |
| ------------- | -------------------------------------------- | -------------------------------------------------------------------------- |
| Not verified  | The code has no adapter-specific error text. | If the log shows `Status Code: 401`, assign the REST API role to the user. |

## Change history

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