Skip to content

Jamf Pro Integration

BastionXP Enterprise connects to Jamf Pro to learn about your devices. It downloads the devices from Jamf Pro's Mobile Devices and Computer Inventory, and it keeps its list up to date when you add or remove devices in Jamf Pro.

The devices appear on the Devices page of the portal, with the source Jamf. A device from Jamf Pro often arrives with few details. BastionXP shows what it knows. For the full details of a device, use Jamf Pro.

Being in the list does not give a device an identity. A device gets an identity, a certificate, when it enrolls. The list tells BastionXP which devices belong to your company, so that BastionXP issues certificates only to them. See Device identity.

What you need

  • The base URL of your Jamf Pro instance. It generally looks like this: https://<your-org-name>.jamfcloud.com.
  • A Jamf Pro API client, with a client ID and a client secret. BastionXP uses Jamf Pro's client credentials sign-in.
  • An API role for that API client, with these privileges:
    • Read Mobile Devices
    • Read Computers

Jamf Pro explains how to create an API role and an API client in its documentation:

Give the role only these two read privileges. BastionXP does not need more.

Connect Jamf Pro to BastionXP

  1. In the portal, choose Settings at the bottom of the menu, and then MDM integrations.

    The MDM integrations page

  2. Choose Add connector.

  3. For MDM provider name, choose Jamf.
  4. Fill in:

    • Base URL: the base URL of your Jamf Pro instance.
    • Client ID and Client secret: from your Jamf Pro API client.

    The Add an MDM connector dialog, for Jamf

  5. Choose Add connector.

BastionXP connects to Jamf Pro with the client credentials, and starts to download the devices. The download happens in batches, so it can take a few minutes.

The column Device sync shows how it goes:

State What it means
Starting BastionXP is about to start the download.
Syncing The download is running.
Synced The download is complete.
Failed The download failed. See If the sync fails.

Open the Devices page. You will see the devices appear, one batch after the other.

Register the webhook

After the first full download, BastionXP does not ask Jamf Pro for the devices again and again. Instead, Jamf Pro tells BastionXP when a device is added or removed. For this, you register BastionXP's webhook in Jamf Pro.

  1. On the MDM integrations page, choose the connector's ID, mdm-1 in the example, or its three dots and then Edit.

    The details of the Jamf connector, with its webhook

  2. Copy the Webhook URL and the Webhook auth token, with their copy buttons.

  3. In Jamf Pro, register the webhook with this URL, and use the token for its basic authentication. Use it for the events that tell about a device that is added and a device that is removed.

The webhook URL looks like this:

https://ca.example.com/v1/mdm/jamf/webhook/5f2c8a1e-7d3b-4e90-9b1a-c4d6e8f01a23

Keep the webhook URL and token private

The webhook URL and the token are the secret that proves to BastionXP that a message comes from your Jamf Pro. Do not share them. If they leak, remove the connector, and add it again. BastionXP then makes a new URL and a new token.

BastionXP must be reachable from Jamf Pro on its HTTPS address, for the webhook. If your BastionXP is on a private network, Jamf Pro Cloud cannot reach it. Make the address reachable, for example through a reverse proxy that you restrict to Jamf's addresses.

Change or remove the connector

On the MDM integrations page, choose the three dots at the end of the row:

  • Edit changes the base URL and the credentials. Do this when you rotate the client secret in Jamf Pro.
  • Delete removes the connector, after you confirm. BastionXP stops syncing devices from this Jamf Pro. The devices that it already knows stay in the Devices list. Delete the connector only when you stop using that Jamf Pro.

If the sync fails

If Device sync says Failed:

  • Check the Base URL. It must start with https://, and it must be the address of your Jamf Pro instance.
  • Check the Client ID and the Client secret. Edit the connector, and enter them again.
  • Check that the API role has the two read privileges.
  • Check that BastionXP can reach your Jamf Pro on the network.

The log of BastionXP has the details of the failure.