Posted on 07-20-2012 04:48 PM
Being quite new to JAMF and Casper I'm somewhat embarrassed to ask something that was probably covered at last week's Jumpstart and surely within the capabilities of this awesome software, but I wonder if there's a way to import our list of buildings and departments?
Posted on 07-21-2012 03:44 PM
OS X:
Do an Inventory search, at the bottom there is a take action on results drop down, choose Edit Building... That will do it for all in your search.
iOS:
...You can set it in your enrollment profile before you enroll devices, after the fact, I don't know of an easy way to do it.
Posted on 07-21-2012 07:01 PM
@matt4836, that won't create new departments & buildings, it only allows you to assign existing ones to computers in the search results. I think jondowd is looking to create the buildings/departments in the JSS without entering each one manually.
@jondowd, there's no GUI control to do this in the JSS, but it can be done with the Casper Suite API. If you haven't looked into it yet, use a URL format like https://yourJSSurl.com:8443/apiFrontPage.rest
On the page that comes up you'll see "buildings" and "departments" (among others) and a POST link next to each that gives you more information about how to use it.
You'll have to put your buildings and departments into xml files that you can import via a script of some kind, possibly using the curl command. I believe you can find examples of the xml format on the Intro page in your JSS:
https://yourJSSurl.com:8443/apiIntro.rest