Building Doesnt Get Updated in Jamf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
10-25-2018
04:13 AM
- last edited on
03-04-2025
05:17 AM
by
kh-richa_mig
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
- Labels:
-
Jamf Pro
