> ## Documentation Index
> Fetch the complete documentation index at: https://docs.formal.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Mobile Device Management

> Roll out the Formal Endpoint and sync devices from your MDM

## Overview

Formal's Mobile Device Management (MDM) integration rolls out the [Formal Endpoint](https://docs.formal.ai/docs/guides/client-apps/desktop-app.md) to your managed devices. It also syncs enrolled devices and their assigned users into Formal.

## Supported MDM Providers

Formal supports Kandji, Fleet, Jamf Pro, Mosyle, and Rippling for both endpoint rollout and MDM integrations.

## Endpoint Rollout

Go to [MDM](https://app.formal.ai/mdm) and click **Set Up Endpoint Rollout**. The dialog walks you through selecting your provider, downloading deployment files, and following setup instructions in your MDM console.

On macOS, the rollout installs the Endpoint without prompting users:

| Step | What it does |
| - | - |
| **Package** | Installs the Endpoint from `formal.pkg`. |
| **Configuration Profile** | `formal.mobileconfig` pre-approves the Formal network extension and sets managed preferences. |
| **CA trust** | With automatic device login, a DDM declaration makes each device trust its own Formal CA. |
| **Verify** | Assigns the files to devices and checks that the Endpoint is installed. The step name depends on your MDM. |

On Windows, deploy the MSI with a silent install. See [Windows](https://docs.formal.ai/docs/guides/client-apps/windows.md).

## Connect Your MDM

Create an MDM integration to sync enrolled devices and their assigned users from your MDM into Formal. Formal uses this list to identify the user behind a device by its serial number, for example when the device attests its identity or signs in without a user login.

**Option 1: Control Plane**

1. Go to [MDM](https://app.formal.ai/mdm)
2. Click **Create Integration**
3. Select **Kandji**, **Fleet**, **Jamf Pro**, **Mosyle**, or **Rippling**
4. Enter your MDM API credentials (see [API credentials and permissions](#api-credentials-and-permissions))
5. Click **Save**

**Option 2: Terraform**

Use the `formal_integration_mdm` resource with the block for your provider:

```hcl theme={"languages":{"custom":["/languages/cel.json","/languages/rego.json"]}}
resource "formal_integration_mdm" "example" {
  name = "Fleet MDM Integration"

  fleet {
    api_key = var.fleet_api_key
    api_url = "https://your-fleet.example.com"
  }
}
```

Mosyle signs in on every API call, so it needs an access token plus the credentials of a Mosyle user with API access:

```hcl theme={"languages":{"custom":["/languages/cel.json","/languages/rego.json"]}}
resource "formal_integration_mdm" "mosyle" {
  name = "Mosyle MDM Integration"

  mosyle {
    access_token = var.mosyle_access_token
    email        = var.mosyle_email
    password     = var.mosyle_password
    api_url      = "https://businessapi.mosyle.com"
  }
}
```

See the [Terraform provider](https://docs.formal.ai/docs/guides/configuration/terraform.md) for Kandji and Jamf Pro examples.

### API credentials and permissions

Formal only reads from your MDM. It lists devices and reads each device's serial number and assigned user's email. It never writes to your MDM, so give its credentials read-only access to devices and nothing else.

#### Kandji

In Kandji, open **Settings > Access** and click **Add API Token**. When you configure the token's permissions, enable only **List Devices** (`GET /api/v1/devices`) under **Device Information**. Use the tenant API URL shown on the same page. See [Kandji API](https://support.kandji.io/kb/kandji-api) and the [API reference](https://api-docs.kandji.io/).

#### Fleet

Create an [API-only user](https://fleetdm.com/guides/fleetctl#create-api-only-user) with the global **Observer** role and use its API token. Observer is read-only and can view all hosts. A team-level role only sees that team's hosts. See [Fleet roles and permissions](https://fleetdm.com/docs/using-fleet/manage-access). Formal reads the user email from each host's identity provider (`mdm_idp_accounts`) device mapping.

#### Jamf Pro

In Jamf Pro, open **Settings > System > API roles and clients**. Create an API role with only the **Read Computers** privilege, then create an API client with that role and generate a client secret. Formal calls only `POST /api/v1/oauth/token` and [`GET /api/v1/computers-inventory`](https://developer.jamf.com/jamf-pro/reference/get_v1-computers-inventory), which requires Read Computers. See [API roles and clients](https://developer.jamf.com/jamf-pro/docs/client-credentials).

#### Mosyle

Mosyle requires three values:

| Value | Where to find it |
| - | - |
| `access_token` | Mosyle console, **Organization > API Integration**. Create a new integration and copy the Access Token. |
| `email` | Email of a Mosyle user with API access. Mosyle authenticates as this user on every request. |
| `password` | That user's Mosyle password. |

Formal only lists Macs and reads each one's serial number and assigned user's email.

`api_url` defaults to `https://businessapi.mosyle.com`. Use `https://managerapi.mosyle.com` for Mosyle Manager.

> [!NOTE]
>
> Formal reads the assigned user's email from each Mac's Mosyle record. A Mac
> with no assigned user cannot be mapped to a Formal user, so assign devices to
> users in Mosyle before relying on automatic device login.

#### Rippling

In Rippling, open **Tools > Developer > API Tokens** and create a token with API version `2025-08-01`. It only needs the `devices.read` and `workers.read` scopes, to read each device's serial number and assigned worker's work email. See [Rippling REST API](https://developer.rippling.com/documentation/rest-api).

**Verify:** After saving, open the integration detail page and confirm devices appear under **Devices**.

## Next Steps

> [card] [Formal Endpoint](https://docs.formal.ai/docs/guides/client-apps/desktop-app.md)
>
> Install the Formal Endpoint

> [card] [Terraform Provider](https://docs.formal.ai/docs/guides/configuration/terraform.md)
>
> Configure MDM integrations with Terraform

> [card] [MDM](https://app.formal.ai/mdm)
>
> Set up endpoint rollout and MDM integrations


## Related topics

- [Integrations](https://docs.formal.ai/docs/guides/integrations/overview.md)
- [Permissions](https://docs.formal.ai/docs/guides/core-concepts/permissions.md)
- [Install Formal Endpoint on Windows](https://docs.formal.ai/docs/guides/client-apps/windows.md)
- [List user devices](https://docs.formal.ai/api-reference/corev1desktopservice/list-user-devices.md)
- [Privileged Access Management](https://docs.formal.ai/docs/guides/solutions/pam.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.