Bachelor Tech
  • Home
  • Tutorials
  • Portfolio
  • About Jan
  • Contact Jan

Use Integromat to get computer IDs from user email in JamF Pro

by Jan Bachelor April 27, 2021

Last Updated on April 27, 2021 by Jan Bachelor

Table of Contents
  1. Create a Scenario in Integromat
  2. Fill in details for the HTTP module
  3. Run the HTTP module to test it

Create a Scenario in Integromat

  • Create an account or log into Integromat.
  • Create a new scenario and select that you desire to use the HTTP module and click on ‘Continue’.
Create a new scenario in Integromat with the HTTP module

Fill in details for the HTTP module

  • Click on the HTTP module and select ‘Make a request’ to insert it into your scenario.
Select the ‘Make a request’ type of an HTTP request
  • As the URL, enter the URL to your JamF Pro instance, such as https://yourcompany.jamfcloud.com/JSSResource/users/email/[email protected]
  • Method: GET
  • Body type: Raw
  • Content type: JSON (application/json)
  • Request content – leave blank
  • Parse response: tick it
  • Tick the ‘Show advanced settings. and scroll down to fill in the ‘User name’ and ‘Password’ – credentials that have API access to your JamF Pro instance.
  • Leave all else as default and click on the ‘OK’ button to save the changes
How to fill in the HTTP module to successfully enquire of JamF Pro API (this is actually one view divided into two to fit onto the screen)

Run the HTTP module to test it

  • Right click on the module and select ‘Run this module only’.
Run the module that you have just created.
  • Whether successful or not, click on the number 1 zoom icon to see what happened – focus on the output section.
  • In case you get a different output then 200, check the previous step of this guide to identify where the issue lies. For example, error 404 would mean that you enquired for a user that is not found in JamF Pro. Make your changes and re-run the module.

Extract a variable from the HTTP output

  • Since we ticked the box to parse the JSON/XML response from the HTTP GET call, the response is already parsed for us. So what we need to do now is just to save whatever details we need from the output into a variable, in order to use it for additional API calls later.
  • Create a new module from the Tools -> choose ‘Set a variable’/
Create a new variable
  • Give a variable a name (e.g. ‘Computer ID), leave it on ‘One cycle’ lifetime.
  • As the variable value, click in the white space and choose ‘Data’ -> ‘users’ -> ‘user[]’ -> ‘links[]’ -> ‘computers[]’ -> ‘computer[]’.
Filter only the computer information for the newly created variable

Sources

  • Integromat’s guide on how to extract a value from a JSON output

Create JamF Pro scripts, static groups and policies + a system account for API access
Back to: Create an automated Gravity workflow that will allow users to request admin rights for their Macs in JamF Pro using Integromat and JamF API.

2 comments

Robert Petitto November 14, 2022 - 2:27 pm

Can you share how you’d use Make (integromat) to add a device to a static group in jamf?

Reply
Jan Bachelor November 14, 2022 - 9:59 pm

Hi Robert, the static groups were created in the previous step and they were created manually. Once you open a static group in JamF, you will see its ID in the URL – that is how you will know which ID to use in Make.com.

By the way, if you are using Macs, there is another way of allowing people to get admin rights temporarily using the Privileges app. There is no approval per say in the process but the user has to specify what they will use the admin rights for and then they get it for a limited period of time (e.g. 15 minutes). The IT admin can then see the reason in the log and can see in the JamF Pro log what you user did (for the purpose of auditing). If you would be interested in that, I can point you to some resources. Jan

Reply

Leave a Comment Cancel Reply

Save my name, email, and website in this browser for the next time I comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 comment 0 FacebookWhatsappEmail

Create an automated Gravity workflow that will allow users to request admin rights for their Macs in JamF Pro using Integromat and JamF API.

  • Previous
Collapse
Expand
  • What are we trying to do, why and how will we get there?
  • Pre-requisities - what software licenses will you need
  • Design a Gravity Form with a simple approval model
  • Access JamF Pro via Classic API - test connection with Postman
  • Create JamF Pro scripts, static groups and policies + a system account for API access
  • Use Integromat to get computer IDs from user email in JamF Pro

Search for articles

Other Tips

  • How to mount an NFS share (such as from FreeNAS) from an Android box
  • How to download a Windows 10 ISO on a Windows device – easy work-around

Other Tutorials

  • Build Your Own Router - Proxmox, OPNSense, OpenVPN server and a VPN client all in one!
    12 Steps
  • Dynamically Populate Gravity Forms from Google Sheets (GSheets APIv4)
    6 Steps

Recent Comments

  • Jan Bachelor on Use Integromat to get computer IDs from user email in JamF ProHi Robert, the static groups were created in the p…
  • Robert Petitto on Use Integromat to get computer IDs from user email in JamF ProCan you share how you'd use Make (integromat) to a…
  • Martin on Part 1 – What do we want to do + Required technology (bank feed)This tutorial deserves more credit, I've not seen…
  • Jan Bachelor on WAN / LAN Set Up (Before OPNSense Installation)Hi Ed, I have not tested it with PCI passthrough y…
  • Ed on OPNSense VM Set UpIn step 4 firewall you turned off firewall, should…

Tags

chrome iso windows

Categories

  • Android
  • FreeNAS
  • Linux
  • Windows

Recent Posts

  • How to mount an NFS share (such as from FreeNAS) from an Android box

  • How to download a Windows 10 ISO on a Windows device – easy work-around

Facebook Twitter Instagram Pinterest Linkedin Youtube

@2019 - All Right Reserved. Designed and Developed by PenciDesign

Bachelor Tech
  • Home
  • Tutorials
  • Portfolio
  • About Jan
  • Contact Jan