Posted on 10-25-2018 04:13 AM
I have a script that runs on enrolment completion and checkin to give user a prompt to select their building. This runs fine but the data doesn't populate the fields in Jamf.
Some configuration profiles and Self Service bookmarks need to be dependant on the building they're in but i can't get it working, any help will be appreciated!
userDept=$(osascript -e 'tell application "SystemUIServer" set myDeptList to {"Basecamp","Club Ada","Club Dekker","Club Kilburn (Leeds)","Club Kilburn (Manchester)","Club Turing","Own Device","Pool Laptop"} set myDept to (choose from list myDeptList) end tell')
/usr/local/bin/jamf recon -Building $userDept