This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
################################################################################ | |
# Description: | |
# Adds or removes a computer (by Serial Number) to/from a static group | |
# in Jamf Pro using the OAuth 2.0 API with client credentials. | |
# | |
# Prerequisites: | |
# - Jamf Pro instance must support Bearer Token API authentication. | |
# - client_id and client_secret must belong to an API role with proper privileges. | |
# - API Privileges : Update Static Computer Groups, Read Static Computer Groups |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Script to update (add/remove) the existing Computer Static Group from the list of serial numbers. | |
# Karthikeyan Marappan | |
# API Role Privileges: Update Static Computer Groups | |
###################### CONFIGURABLE VARIABLES ################################ | |
serialNumberList="$HOME/Desktop/sourceList.txt" # Path to plain text file with serial numbers | |
Jamf_URL="https://karthikeyan.jamfcloud.com" # Your Jamf Pro URL | |
Jamf_URL="${Jamf_URL%/}" # Remove trailing slash if present |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
## postinstall | |
pathToScript=$0 | |
pathToPackage=$1 | |
targetLocation=$2 | |
targetVolume=$3 | |
# Optionally replace the value of this variable with the name of your organization. | |
organizationIdentifier=com.arekdreyer |