Posted on 04-05-2024 01:17 PM
Can one display what site a Jamf deployed computer is in from the Terminal application on the client?
Posted on 04-05-2024 01:32 PM
you can use a config profile with a jamf site variable, then read that back with a defaults read..
Posted on 04-06-2024 10:17 AM
@jamf-42's method is probably the easiest way to do this. You can also just do it with a script writing to a regular plist, like in /Library/Preferences/ for example. But using a profile is just as good and gives you the same results in the end.
Otherwise you would need to use an API call, which gets messy and potentially opens up some security concerns, depending on where and how you are running the API query.