> 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/j/jamf-pro-cloud.md).

# Jamf Pro Cloud

Jamf Pro Cloud is the Jamf Pro adapter that signs in with an API client. OctoXLabs reads the computer inventory and, when enabled, the users assigned to computers.

{% hint style="info" %}
Use this adapter when your Jamf Pro is version 10.49.0 or later and you created an API client. For username and password authentication, use the Jamf Pro adapter.
{% endhint %}

## Use cases

* **Find Macs that Jamf Pro Cloud manages but your EDR does not cover.**

```
Adapters = jamf-pro-cloud AND NOT Adapters = falcon-crowdstrike
```

* **Review computers that Jamf Pro Cloud has not seen recently.**

```
Adapters = jamf-pro-cloud AND NOT LastSeen last now-30d/d
```

* **Check what one Jamf Pro Cloud connection collected.**

```
Connections = YOUR_CONNECTION_NAME
```

## Before you begin

### Network

| Source              | Destination                      | Port | Protocol |
| ------------------- | -------------------------------- | ---- | -------- |
| OctoXLabs connector | Jamf Pro host (Domain parameter) | 443  | HTTPS    |

The connector always uses HTTPS. If a proxy is set, requests go through it.

### Required permissions

| Scope or role                    | Permission     | Needed for                            |
| -------------------------------- | -------------- | ------------------------------------- |
| API role bound to the API client | Read Computers | Reading `/api/v1/computers-inventory` |

Without this privilege the inventory request returns HTTP 403 (baseline).

## Create credentials in Jamf Pro Cloud

{% stepper %}
{% step %}

### Create an API role

In Jamf Pro, go to **Settings > System > API Roles and Clients** and create an API role with the **Read Computers** privilege.
{% endstep %}

{% step %}

### Create an API client

On the **API Clients** tab, create a client and bind it to the role. Enable the client.
{% endstep %}

{% step %}

### Copy the secret

Generate the client secret and save the Client ID and the secret. Jamf shows the secret only once.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter        | Required | Type    | Default | Description                                                                                |
| ---------------- | -------- | ------- | ------- | ------------------------------------------------------------------------------------------ |
| Domain           | Yes      | String  | None    | Host name of the Jamf instance, for example `mycompany.jamfcloud.com`, without `https://`. |
| Client ID        | Yes      | String  | None    | API client ID, sent as `client_id`.                                                        |
| Client Secret    | Yes      | String  | None    | API client secret, sent as `client_secret`.                                                |
| Fetch users      | No       | Boolean | False   | Also reads the users assigned to computers.                                                |
| Aggregate by MAC | No       | Boolean | True    | When the host name is missing, use the MAC address as the aggregation key.                 |
| Aggregate by IP  | No       | Boolean | True    | When host name and MAC are missing, use the last IP address as the aggregation key.        |
| Proxy            | No       | String  | None    | Proxy as host:port, used as `http://<value>` for HTTP and HTTPS.                           |
| Timeout          | No       | Integer | 60      | Seconds to wait for an API response.                                                       |

## Troubleshooting

| Error message                                                  | Cause                                                                                                 | Fix                                                             |
| -------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
| Jamf Pro request failed after 5 retries                        | The API kept answering 401 or 429.                                                                    | Check the Client ID and secret, then run discovery again later. |
| Status Code: `, followed by URL, Method and the response body` | The API answered with an unexpected status, for example 403. This is the shared REST connector error. | Check that the API role has Read Computers.                     |

## Change history
