API to create and add users to static group

Nick_Gooch
Contributor III

Is anyone good with the API? I am looking for something that would create a static group and add the user's in the csv to that static group. If it could also remove users if they aren't in the file for that group that would be even better.

I tried this https://jamfnation.jamfsoftware.com/discussion.html?id=5505 but always got a 409 conflict.

Thanks as always.

2 REPLIES 2

Nick_Gooch
Contributor III

Or take a user name match it to a mobile device and then submit that device to an already created static group.

chris_miller
Contributor

It's totally do-able, but does take a bit of a work around. If you can search or filter the iPads using any parameter, you can export a csv, and then extract the serial numbers. Dump those into a CSV by themselves and fire up the Create-Static-From-Serial python script to build your group. We used lists of student ids to create static groups of about 500 - 1000 kids in specials in order to scope apps to them in situations where we were unable to easily create smart groups. This would be nice as a feature, though.af46887062b748b8a3ac6af90c794fb6