Summary: ◀▼
You can connect Jamf Pro to action flows to automate IT asset management, syncing computer and mobile device data. Use pre-built templates to schedule daily synchronization, update user records, and import assets with mapped details. This integration helps maintain accurate asset inventories and user assignments, improving workflow automation and asset tracking within your support environment.
Connecting Jamf Pro to action builder
Before you can include external actions in your action flows, you must connect the action builder to the external system.
- All external actions performed by an action flow are attributed to the user who connected the external system. Therefore, it's a best practice to use a dedicated service account rather than personal credentials when connecting to each external system.
- All integrations request access to necessary scopes. However, it's important that you review and validate the scopes before authorizing the connection to the external system.
- When managing credentials for API key-based tools, such as OpenAI, it's best to store keys in a secure vault or credential manager.
Creating a Jamf Pro client to use with action builder
Before you can connect Jamf Pro to action builder, you must configure a role and client that will be used for that connection.
- In Jamf Pro, create a role with the
following permissions:
Assign users to computersAssign users to mobile devicesRead accountsRead computersRead computer inventory collectionRead mobile devicesRead mobile device inventory collectionRead userUpdate computersUpdate computer inventory collectionSend computer remote lock commandSend computer remote wipe commandSend computer restart commandSend mobile device lost mode commandSend mobile device restart device commandView MDM command information in Jamf Pro API
- In Jamf Pro, create an API client and assign it to the role with the listed permissions.
- In Jamf Pro, generate a client secret.
- Connect the Jamf Pro client to the action builder.
Connecting your Jamf Pro client to action builder
- In Admin Center, click
IT assets in the sidebar, then select Assets > Overview. - Click Sync computer details from Jamf Pro or Sync mobile info
from Jamf Pro.
An authentication modal opens.
- Enter the Jamf Pro client's Jamf Pro server URL, Client ID, and Client secret.
- Click Allow connection.
- In Admin Center, click
Apps and integrations in the sidebar, then select Actions > Action
flows. - Create or edit an action flow.
- Open the step sidebar.
- Under External actions, click Jamf Pro.
- Click Connect.
- Use Jamf Pro to authenticate the account.
Use the Jamf URL, client ID, and the generated client secret to authenticate.
Using Jamf Pro actions in action flows
Jamf Pro action steps can be used in action flows to streamline the management of IT assets, such as computer inventories and mobile devices.
Listing computer inventories
Use the List computer inventories action to retrieve a list of computer assets.
This action has the following inputs and outputs:
| Variables | |
|---|---|
| Inputs | None |
| Output | Computer identification, hardware, purchasing, location, and user assignment data |
Listing mobile devices
Use the List mobile devices action to retrieve a list of mobile device assets.
This action has the following inputs and outputs:
| Variables | |
|---|---|
| Inputs | None |
| Output | Device identification, hardware, purchasing, location, and user assignment data |
Locking devices
pin value isn't stored in a visible way. You must
record it outside of Zendesk.This action has the following inputs and outputs:
| Variables | |
|---|---|
| Inputs |
device_id, Pin
|
| Output | Device and request details |
Restarting devices
Use the Restart device action to automatically restart a managed device remotely.
This action has the following inputs and outputs:
| Variables | |
|---|---|
| Inputs | device_id |
| Output | Device and request details |
Erasing devices
Use the Erase device action to automatically wipe a managed device remotely.
This action has the following inputs and outputs:
| Variables | |
|---|---|
| Inputs |
device_id, pin
|
| Output | Device and request details |
Using templated action flows to synchronize assets with Jamf Pro
- In Admin Center, click
IT assets in the sidebar, then select Assets > Overview. - Select the template you want to create: Jamf for computers or Jamf
for mobile devices.
An action flow is created with pre-populated steps and values.
- Connect your Jamf Pro account.
- Activate the templated action flow.
Template: Jamf for computers
-
Action flow trigger: Schedule. The action flow trigger, which
initiates the action flow on a daily basis.
A default time at which to initiate the action flow is preconfigured, but can be adjusted.
-
Utility: Repeat while conditions are met. A looping step
configured to repeat the following actions while there are additional
pages of devices:
-
External actions: Jamf Pro: Fetch computer devices.
Fetches computer device data from Jamf Pro.
- Utility: Update custom variable. Updates variables related to cursor pagination of the Jamf Pro computer devices.
-
Utility: Custom code. Custom JavaScript that maps the
Jamf Pro computer device data to the appropriate asset type and
status in Zendesk.
If the device is assigned to a user, the Zendesk asset status is In use; otherwise, the status is Available.
Note: Validate and customize the pre-defined JavaScript as needed. - Zendesk actions: Batch import assets. Creates or updates asset records in Zendesk and automatically maps Jamf Pro computer device details to asset fields in Zendesk.
-
External actions: Jamf Pro: Fetch computer devices.
Template: Jamf for mobile devices
-
Action flow trigger: Schedule. The action flow trigger, which
initiates the action flow on a daily basis.
A default time at which to initiate the action flow is preconfigured, but can be adjusted.
-
Utility: Repeat while conditions are met. A looping step
configured to repeat the following actions while there are additional
pages of devices:
-
External actions: Jamf Pro: Fetch mobile devices.
Fetches mobile device data from Jamf Pro.
- Utility: Update custom variable. Updates variables related to cursor pagination of the Jamf Pro mobile devices.
-
Utility: Custom code. Custom JavaScript that maps the
Jamf Pro mobile device data to the appropriate asset type and
status in Zendesk.
If the device is assigned to a user, the Zendesk asset status is In use; otherwise, the status is Available.
Note: Validate and customize the pre-defined JavaScript as needed. - Zendesk actions: Batch import assets. Creates or updates asset records and associated users in Zendesk and automatically maps Jamf Pro mobile device details to asset fields in Zendesk.
-
External actions: Jamf Pro: Fetch mobile devices.