Skip to content

Instantly share code, notes, and snippets.

#!/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
@colorenz
colorenz / UpdateJamfStaticGroup.sh
Created May 17, 2025 08:22 — forked from karthikeyan-mac/UpdateJamfStaticGroup.sh
This script reads a list of serial numbers from a file and updates a Static Computer Group in Jamf Pro.
#!/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
@colorenz
colorenz / Think-cell.plist
Created March 4, 2023 09:17
Think-cell plist with all values
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.think-cell.settings.licensekey</key>
<string>ABCDE-ABCDE-ABCDE</string>
<key>com.think-cell.settings.updates</key>
<dict>
<key>enabled</key>
<true/>
@colorenz
colorenz / Think-cell.json
Last active March 4, 2023 09:22
Think-cell Jamf json Schema Manifest
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Think-cell Settings",
"description": "Configuration settings for the Think-cell application. Preference Domain is com.microsoft.office. Docs https://www.think-cell.com/en/resources/manual/deploymentguide#subsect_mdmmacos",
"type": "object",
"properties": {
"com.think-cell.settings.licensekey": {
"type": "string",
"description": "The license key for Think-cell"
},
@colorenz
colorenz / Check_Onedrive_KFM_NEW.sh
Created October 23, 2022 10:57
Extenstion Attribute to check if a User Desktop or Documents Folder are KFM Folders
#!/bin/zsh
### Version Beta 0.2
### Created by Colorenz
### Extenstion Attribute to check if KFM Status
### KFM Values
### 0 = Off
### 512 = Desktop Backed Up
### 1024 = Documents Backed Up
### 1536 = Desktop and Documents Backed Up.
@colorenz
colorenz / Check_Onedrive_KFM.sh
Last active January 28, 2025 23:23
Extenstion Attribute to check if a User Desktop or Documents Folder have a Symlinks and are OneDrive KFM Folders
#!/bin/zsh
### Version Beta 0.1
### Created by Colorenz
### Extenstion Attribute to check if a User Desktop or Documents Folder have a Symlinks and are OneDrive KFM Folders
#Get Current logined User
CurrentUser=$(scutil <<<"show State:/Users/ConsoleUser" | awk '/Name :/ { print $3 }')
#Get Current User Home
#!/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