Jamf - API Roles & Clients
The API Roles and Clients functionality in Jamf Pro provides a dedicated interface for controlling access to the Jamf Pro API and the Classic API. You can create custom privilege sets as API roles and assign them as needed, ensuring that API clients have only the necessary capabilities for their tasks.
Roles can be:
Shared between clients, or
Assigned more than one to a single client
This allows you to manage and reuse privilege sets conveniently and with greater granularity.
Creating an API Role
To grant privileges to an API client in Jamf Pro, you must first create an API role that defines a privilege set. One or more of these roles can then be assigned to a client to grant their cumulative privileges.
Steps
In Jamf Pro, click Settings in the sidebar.
In the System section, click API Roles and Clients.
Click the API Roles tab at the top of the pane.
Click New.
Enter a display name for the API role.
In the Jamf Pro API role privileges field, begin typing the name of a privilege you want to assign, and select it from the pop-up menu.
Continue adding privileges until you are finished.

Click Save.
Creating an API Client
You can create an API client in Jamf Pro to generate a client secret, which can then be used by the Jamf Pro API to generate access tokens.
Requirements
At least one API role created in Jamf Pro.
Steps
In Jamf Pro, click Settings in the sidebar.
In the System section, click API Roles and Clients.
Click the API Clients tab at the top of the pane.
Click New.
Enter a display name for the API client.
In the API Roles field, add the roles you want to assign to the client.
The client will have the cumulative privileges of all assigned roles.
Under Access Token Lifetime, enter the time (in seconds) that you want access tokens to remain valid.
Click Save.
Click Edit.
Click Enable API Client to allow the client to be used for generating a client secret.
Click Save.
Generating a Client Secret
After you have created an API client and assigned it one or more roles, you can generate a client secret, which can then be used to generate access tokens.
Requirements
An API client created in Jamf Pro with at least one role assigned to it.
Steps
In Jamf Pro, navigate to the API client you want to generate an access token from.
Click Generate Client Secret. A confirmation dialog appears.
Click Create Secret. A pop-up window appears with the client secret.
Last updated

