> 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-sase.md).

# Forti SASE

FortiSASE is Fortinet's cloud-delivered SASE platform. It combines SD-WAN, secure web gateway, ZTNA, CASB and firewall services for remote users and branches. OctoXLabs reads the endpoint details and adds the endpoints to the device inventory.

## Use cases

* List all endpoints managed by FortiSASE.

```
Adapters = forti-sase
```

* Find FortiSASE endpoints that are not in Active Directory.

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

## Before you begin

### Network

| Source              | Destination                               | Port | Protocol |
| ------------------- | ----------------------------------------- | ---- | -------- |
| OctoXLabs connector | FortiSASE domain (token and endpoint API) | 443  | HTTPS    |

The port is not a parameter. The connector always uses HTTPS.

### Required permissions

| Scope or role                                                               | Permission               | Needed for        |
| --------------------------------------------------------------------------- | ------------------------ | ----------------- |
| Resource-based permission profile of type Local, with FortiSASE as a portal | Read access on endpoints | Reading endpoints |

## Create credentials in Forti SASE

{% stepper %}
{% step %}

### Sign in to the IAM portal

Log in to the FortiCloud Identity & Access Management (IAM) portal as an IAM user with Admin permissions.
{% endstep %}

{% step %}

### Create a permission profile

Create a resource-based permission profile of type **Local** that lets IAM users access FortiSASE as a portal. It must have read access on reading endpoints.
{% endstep %}

{% step %}

### Create an API user

1. Select **Users** in the left navigation menu.
2. Click **Add New** > **API User**.
3. Select the permission profile you created.
4. Click **Download Credentials**.
   {% endstep %}

{% step %}

### Enter the credentials

Use the downloaded credentials as the username and password in OctoXLabs.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter | Required | Type             | Default | Description                                    |
| --------- | -------- | ---------------- | ------- | ---------------------------------------------- |
| Domain    | Yes      | Text             | None    | Domain address of FortiSASE, without scheme.   |
| Username  | Yes      | Text             | None    | API user name from the downloaded credentials. |
| Password  | Yes      | Text (sensitive) | None    | Password from the downloaded credentials.      |

## 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
