Building Doesnt Get Updated in Jamf

andyrew3
New Contributor

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!

!/bin/sh

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

0 REPLIES 0