Showing results for 
Search instead for 
Did you mean: 

Fun-stuff with Apple Shortcuts and JumpCloud

Rising Star II
Rising Star II


We got a long weekend here in Singapore over Chinese New Year and I picked up an item on 'always want to look into this list' while it was pouring rain outside. I recalled the article from @pamlefkowitz a while back about "Shortcuts for Work and Fun" and went from there. Certainly I couldn't hesitate to deal with the JumpCloud API's then as well. 

I started off with an automation not related to JumpCloud. My telco decided to dramatically decrease the lease time of my Public IP which is causing some issues related to my streaming services, so I got that fixed and created a shortcut which pulls my public IP from here and then updates it via API-call on my DynDNS-provider. Done. 

Screenshot 2023-01-26 at 15.38.48.png

First exercise with JumpCloud: Get some local system details and pull some other by using an Read-Only API-Key

What it does: 

  1. lookup the SystemID via bash script from the jcagent.conf-file
  2. set the SystemID as a variable
  3. call the Systems-Endpoint by using the SystemsID
  4. Grab the response and put it in a Dictionary
  5. Extract some values out of the JSON-response (i.e. RemoteIP, Architecture, FileSystem)
  6. Get some further details using the builtin variables
  7. Collect and present them in a Text Box (which can be shared/copied then)

Note: running this shortcut requires Administrator privileges. 

Screenshot 2023-01-26 at 15.46.44.png

You can find the shortcut here if you're interested.  

Second exercise with JumpCloud: Install/Update Cisco AnyConnect for macOS

What it does:

  1. As above, get the SystemID
  2. Associate the device to the respective Command
  3. Webhook to trigger the Command
  4. to-be-done: remove the device post-execution

Screenshot 2023-01-25 at 12.59.25.pngScreenshot 2023-01-25 at 13.00.00.pngScreenshot 2023-01-25 at 13.03.35.png

You can find the shortcut here if you're interested.

I believe that Shortcuts are extremely powerful, especially for admins. I would hesitate - as of now - to hand out shortcuts dealing with JumpCloud's API's to users, but for lightweight automations at no additional costs and fairly little effort to get things going for daily routines - this seems to be a good consideration. Especially tasks like triggering a Command, applying a policy, or resetting a user's password are definitely doable while being executing on the admin's desktop or iPhone/iPad. 

Thanks for reading and I'd like to read thoughts, comments or see other Shortcuts share here in the community. 

- Juergen