5/4/2023 0 Comments Jamf pro api examplesUse the variable with the Bearer Token authentication type selected to perform calls to all other Jamf Pro API endpoints. Now the endpoints can be used to generate, refresh or invalidate tokens. Navigate to the Variables tab and populate the username, password and URL for your Jamf Pro environment. ![]() After downloading and importing the collection, click the ellipsis next to the “Jamf Pro API Authentication” collection and select Edit. The keep-alive endpoint will respond with a new token and expiration and will invalidate the previous token.īelow you will find a link to a Postman collection that can be used to generate tokens and store them as variables for future API calls in Postman. In order to perform successful requests to the Jamf Pro API you must present a valid token in the Authorization header of each request. Simply send a POST to the endpoint with the existing token in an Authorization header like you would to any other endpoint (see step 3 above). The Jamf Pro API leverages the same User Accounts and Groups functionality of Jamf Pro as the Classic API, but uses a token-based authentication scheme. Need a little help getting started with Bearer Tokens? We've got you covered, with an example code snippet:īy default, tokens expire after 30 minutes, but you can use a currently valid token to generate a new token with a fresh 30 minute validity period, using the /v1/auth/keep-alive endpoint. You can use the previously generated token to make calls to any other Jamf Pro API endpoint by including it in a header using the format Authorization: Bearer TOKEN_VALUE.You should receive a response that includes a token and an expiration date similar to the following example:.Using basic authentication, request a Bearer Token by sending a POST to /v1/auth/token.The workflow of requesting an initial token and using that token in API requests is outlined below: The Jamf Pro API leverages the same User Accounts and Groups functionality of Jamf Pro as the Classic API, but uses a token-based authentication scheme. For more information on the privileges required to perform a specific API operation, see Privileges and Deprecations. The Create, Read, Update and Delete privileges for an account or group within Jamf Pro correspond respectively with the POST, GET, PUT and DELETE HTTP methods. Sign in to the Jamf Pro portal as an Administrator.įrom the Search tab, select the Save this search checkbox.Ĭlick the Display tab and ensure the Email Address and Full Name checkboxes are selected.Ĭlick the Display Name you entered in step d and obtain the ID value (which is the Advanced Search ID) from the Portal URL.Įxample: After clicking the Display Name, the Portal URL format looks as follows: įrom the above URL, the ID value (13) is the Advanced Search ID value to enter when setting up the integration.The Jamf Pro API supports Bearer Token authentication and uses the standard User Accounts and Groups functionality of Jamf Pro. For more information on creating the user or providing the privileges to a user, see JSS User Accounts and Groups. Then the Base URL is 2.Įnter the username and password of the user with Auditor Privileges for your Jamf Pro account. Obtain the Base URL from your Jamf Pro account’s Portal URL without https.Įxample: If the Portal URL with the assigned domain “flexera” is To integrate Jamf Pro with SaaS Management: 1. To integrate Jamf Pro with SaaS Management, perform the following steps. Grants Read All permissions to the APIs used in this integrationĪllows you to create a Jamf Pro Advanced Search ID Minimum API required permissions are based on the following Jamf user roles. Note:The following SaaS application user roles are not applicable to Flexera One roles. ![]() Note:The information stored is subject to change as enhancements are made to the SaaS application. The following table describes the available integration task and stored data. Integrating Jamf Pro with SaaS Management Required Minimum Permissions for Jamf Pro Jamf Pro is a comprehensive management system for Apple macOS computers and iOS devices.
0 Comments
Leave a Reply. |