
JAMF API SCRIPTS HOW TO
More information about how to set-up, use, and configure all of the above is available in the GitHub Wiki for the PrivilegesDemoter project. Using the script alone you can elevate, demote, demote silently, print the current user’s status, and calculate how much admin time has passed since the last time PrivilegesDemoter ran. The script now includes several new options when running locally.The script now allows for standalone elevation and demotion actions (without deploying SAP Privileges) Note: This requires an MDM with the ability to run scripts from a Self Service portal (like Jamf Pro).
JAMF API SCRIPTS PRO



PrivilegesDemoter 3 has been written to be customizable for a number of different deployment scenarios. Additionally, each elevation and demotion event is recorded and saved to a log file. PrivilegesDemoter is a script that allows users to self manage local administrator rights, while reminding them not to operate as an administrator for extended periods of time. The original posts for previous versions are available here: While the main functions remain, several new options are available to make deployment and configuration much more flexible. PrivilegesDemoter version 3 is here, and it’s a big update. If & thenĮcho "Please drag-n-drop or enter the path to a line-seperated file containing computer names or IDs: "Įcho "ERROR: The path to the specified readable file cound not be found.
JAMF API SCRIPTS PASSWORD
If || & thenĮcho "ERROR: A JSS user name and password are required if no encoded authorization is provided." >&2Įcho "Please enter a name for the group you wish to create/populate: "Įcho "ERROR: No group name was specified." >&2 # verify user and password or encoded authorization If & & thenĮcho "Please enter JSS password for account : " If & thenĮcho "ERROR: Unable to connect to JSS. #! /bin/bashĪPIUser=$(/usr/bin/osascript$computer_name"įullURL="$/JSSCheckConnection -o /dev/null) If this is left blank then the user will get an alert of success or failure joining the group.

If API username and Password are not given it will prompt the user for the JSS ID and Password.Īnystring will make this run silent. This will control if it adds the computer or deletes the computer from the group. It has to be just either of those strings with no quotes, or this won't function. I have a goal of phasing this out in hopes of using a drop down extension attribute instead.
