There was an error while loading. Please reload this page.
(Home)
Previous TOC Next
Now we can add the computers we just created to the static group we just created
There are a couple of ways to add and remove members from static groups:
change_membership
save
my_grp.change_membership add_members: new_comp_ids # => array of member data
The add_members: parameter takes an array of any kind of identifiers; ids, names, serialnumbers, udids, etc
add_members:
new_comp_ids
The changes are immediately applied to the JSS
You can also provide a remove_members: parameter to add and remove at the same time
remove_members:
You will get an error if you try to add something that doesn't exist in the JSS
ruby-jss Wiki Home