JAMF provides enterprise-secure solutions with consumer-simple workflows to manage and secure devices and users.
First, create JAMF Resources in Tines
You will need to create two resources:
JAMF subdomain
JAMF username
Login to your Tines tenant
Navigate to the team that will be using the API and click "Resource"
Click "+ New Resource"
Input the values for the JAMF resource
Name: JAMF subdomain
Description: Optional
Builder: Your JAMF subdomain
Optional
Access: What other teams can also use the resource
Click "Save resource"
In Resources, click "+ New Resource"
Input the values for the JAMF resource
Name: JAMF username
Description: Optional
Builder: Your JAMF username
Optional
Access: What other teams can also use the resource
Click "Save resource"
Next, create JAMF Credentials in Tines
You will need to create two credentials:
JAMF password
JAMF token
Login to your Tines account
Select the team using the API and click "Credentials"
Click "+ New Credential" and select "Text"
Input the values for the JAMF credential
Name: JAMF password
Description: Optional
Value: Your JAMF password
Optional
Access: What other teams can also use the credential
Click "Save"
In Credentials, click "+ New Credential" and select "HTTP Request"
Input the values for the JAMF credential
Name: JAMF token
Description: Optional
URL:
https://<subdomain>.jamfcloud.com/api/v1/auth/token
Content type: Form
Method: post
Payload: None
Remove the "Headers" option
Click on "+ Option", select "Basic auth" and add the JAMF username resource and JAMF password credential you created
Click "Run Options" and click the copy button beside
token
to copy the path.
Next, paste the path to the
token
into Location of token from response
Optional
Access: What other teams can also use the credential
Click "Save"
For more on creating credentials in Tines, click here.
You can find a selection of JAMF stories in the story library.
Using the resource and the credential in an action
When making requests to JAMF, you will:
use the JAMF subdomain resource in the url:
"url":"https://<<RESOURCE.jamf_subdomain>>.jamfcloud.com/JSSResource/computers"
use the JAMF token credential in a header:
"Authorization": "Bearer <<CREDENTIAL.jamf_token>>"
Putting it all together, here is an example JAMF action you can copy and paste onto your storyboard in Tines:
{"standardLibVersion":"32","actionRuntimeVersion":"4","agents":[{"disabled":false,"name":"Get computers","description":"Created from cURL command","options":"{\"url\":\"https://<<RESOURCE.jamf_subdomain>>.jamfcloud.com/JSSResource/computers\",\"method\":\"get\",\"headers\":{\"Authorization\":\"Bearer <<CREDENTIAL.jamf_token>>\"}}","position":{"x":-720,"y":-1275},"type":"httpRequest","timeSavedUnit":"minutes","timeSavedValue":0,"monitorAllEvents":false,"monitorFailures":false,"monitorNoEventsEmitted":null,"recordType":null,"recordWriters":[],"form":null,"cardIconName":null,"createdFromTemplateGuid":null,"createdFromTemplateVersion":null,"originStoryIdentifier":"cloud:aa47f8215c6f30a0dcdb2a36a9f4168e:d4c15df0f02ba4789095426607003199"}],"links":[],"diagramNotes":[]}