Skip to main content
Question

Example Smart Group Creation via Jamf Pro Server API


Forum|alt.badge.img+6

The below XML will allow creating a Smart Group via the Jamf Pro Server API.
Credit: Elliot Jordan, Linde Group, AutoPkgr

<computer_group>
    <name>GroupName</name>
    <is_smart>true</is_smart>
    <criteria>
        <criterion>
            <name>Application Title</name>
            <priority>0</priority>
            <and_or>and</and_or>
            <search_type>is</search_type>
            <value>NameOfAppInJSS</value>
        </criterion>
        <criterion>
            <name>Application Version</name>
            <priority>1</priority>
            <and_or>and</and_or>
            <search_type>is not</search_type>
            <value>VersionNumber</value>
        </criterion>
    </criteria>
</computer_group>

3 replies

leslie_h
Forum|alt.badge.img+14
  • Employee
  • 100 replies
  • October 18, 2016

I have the following project (work in progress). The app is used to create or modify static computer or mobile device groups. Provide a list of devices, one record per line, identified by either serial number, MAC address, or name along with the JSS URL, appropriate credentials and group name then off you go. Watch out for special characters in the password of the account used.
https://dl.dropboxusercontent.com/u/62158140/Static%20Group%20Helper.zip


Forum|alt.badge.img+6
  • Author
  • New Contributor
  • 9 replies
  • October 19, 2016

@leslie, is the code for this open source? Github? Please send me an official link if it's OK to share it in my session notes on Thursday!


leslie_h
Forum|alt.badge.img+14
  • Employee
  • 100 replies
  • October 19, 2016

@luisgiraldo - Afraid I haven't set up a Github or open sourced the code. Currently the dropbox link is what I have to share it out.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings