privacysoli.blogg.se

Jamf api scripts
Jamf api scripts










jamf api scripts jamf api scripts
  1. JAMF API SCRIPTS HOW TO
  2. JAMF API SCRIPTS INSTALL
  3. JAMF API SCRIPTS UPDATE
  4. JAMF API SCRIPTS PRO

Response = requests.get(classes_url, headers=, auth=(UsernameVar,PasswordVar)) This test script will simply list all your classes: used to integrate authentication schemes between languages and through APIs. You’ll need to edit the USERNAME, PASSWORD AND YOURSITE (The YOURSITE should be the web address you use to access JAMF Pro). Jamf Connect Verify: Used for keeping the local account and web identity. Ideally run this test script first – I’ve noticed that copying and pasting text from here messes up the quote marks so you may get an error, you’ll need to remove the quote marks in here and add them back in again, in the editor it should make text in between them show as green.

JAMF API SCRIPTS INSTALL

Make sure to follow on from each step and install PipENV but I wouldn’t do the Virtual Envronment bits, so when you reach Lower level: virtualenv skip down to: 🙂įirstly you need to get Python installed and working, so go here and follow the instructions:. This is all for Windows users (I’m afraid I’m not a MAC man), you’ll need to have a basic understanding of Windows Admin stuff but if you don’t even have that and wanting to code then I’d step away from the keyboard! These steps have a $ infront of them BTW, just don t type the $! It’s all done from powershell.

JAMF API SCRIPTS HOW TO

To the reason you’re probably here, you’ve searched high and low and while you’ve found some CURL statements and perhaps the odd Python script you have no idea how to use it! Well, take it from a NOOB neither did I, so here we go. These classes are imported into Apple School Manager by Salamndarsoft and then good old JAMF pulls these across and simply adds them to the existing list, we ended up with some 6000 classes in Sept.

jamf api scripts

Why am I telling you this? It seems JAMF (BTW, we chose JAMF as our MDM for this one 2 one iPad project) has no facility to bulk delete classes for Apple Classroom.Īt the end of each academic year new classes are created in our various MIS’s across the trust, Progresso, Bromcom, Sims etc. So this file will defile all the different actions GitHub will need to perform for our deployment.So, my coding skills leave a lot to be desired! I use powershell quite a bit but not really much else. This script will do all the API calls to upload the script in the Jamf console. deploy.sh : The core of this automation.hello_world.sh : This is the script we want to deploy.

JAMF API SCRIPTS UPDATE

Is it a new script or an update of an existing script, what is the category where the script is located, what are the different parameters and so on. config.json : Here, we will define the different options of our deployment.You’ll define the different actions to perform, the environment variables to use or the notifications to send for example. deploy.yml : This file contains the configuration for GitHub Actions.Let’s see what’s the purpose of each file : To display and create hidden folders, press Cmd + Shift +. On your computer, clone the repository, and then create the files and folders, following this structure : Enter the password and click on Add secret. Now, create a secret called JAMF_PASSWORD. In your repository, go in Settings, then Secrets and click on New repository secret. Now, we will setup the repository in GitHub.įirst, you’ll have to add the password of the user you’ve just created as a secret in Github. In the Jamf Console, create a new user with just the rights to Create, Read and Update scripts. Prerequisites Creation of a dedicated user in Jamfįor security concerns, I prefer to create a user dedicated only for the deployment purpose, with very limited rights. All kudos should go to the original post. As it’s in Japanese and as I also did some additions to this, I wanted to share my implementation. I also found this post, describing exactly what I wanted to do. As I was looking for a way to use Github as a version control tool, there was a session about this subject in VJNUC 2021.

JAMF API SCRIPTS PRO

Deploying scripts on Jamf Pro is very common, but I found we lack versioning, rollback and team work on that part.












Jamf api scripts