> 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/fortinet-forticlient-ems.md).

# Fortinet FortiClient EMS

FortiClient EMS (Endpoint Management Server) manages FortiClient agents across an organization. OctoXLabs reads the endpoint list and adds the endpoints to the device inventory.

## Use cases

* List all endpoints managed by FortiClient EMS.

```
Adapters = forticlient-ems
```

* Find EMS endpoints that have no record in the EDR.

```
Adapters = forticlient-ems AND NOT Adapters = falcon-crowdstrike
```

## Before you begin

### Network

| Source              | Destination            | Port                             | Protocol                           |
| ------------------- | ---------------------- | -------------------------------- | ---------------------------------- |
| OctoXLabs connector | FortiClient EMS server | 443 (code default, configurable) | HTTPS (HTTP when Is secure is off) |

{% hint style="warning" %}
The frontend instruction for this page names 8443 as the default port. The connector code defaults to 443. Enter the port your EMS server actually uses.
{% endhint %}

### Required permissions

| Scope or role  | Permission              | Needed for               |
| -------------- | ----------------------- | ------------------------ |
| EMS admin role | Read-only administrator | Reading endpoint details |

## Create credentials in FortiClient EMS

{% stepper %}
{% step %}

### Create an admin role

1. Go to **Administration** > **Admin Roles**.
2. Click **Add**.
3. Fill in the remaining fields.
4. Set the permissions to **Read-only administrator**.
5. Click **Save**.
   {% endstep %}

{% step %}

### Create a user with this role

Create an administrator user with the role above and note the username and password.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter | Required | Type             | Default | Description                        |
| --------- | -------- | ---------------- | ------- | ---------------------------------- |
| Ip        | Yes      | Text             | None    | IP address or host name of EMS.    |
| Port      | No       | Integer          | 443     | Port number.                       |
| Username  | Yes      | Text             | None    | EMS account name.                  |
| Password  | Yes      | Text (sensitive) | None    | EMS account password.              |
| Is secure | No       | Boolean          | True    | Use SSL.                           |
| Timeout   | No       | Integer          | 30      | Seconds to wait for API responses. |

The frontend instruction also lists Thread Count and Sleep Time. The connector code has no such parameters, so they are not listed here.

## Troubleshooting

| Error message | Cause                                        | Fix                                                        |
| ------------- | -------------------------------------------- | ---------------------------------------------------------- |
| Not verified  | The code has no adapter-specific error text. | Check the log for `Status Code`, `URL` and `Method` lines. |

## Change history
