Method: Jamf::DirectoryBindingType::ActiveDirectory#remove_admin_group
- Defined in:
- lib/jamf/api/classic/api_objects/directory_binding_type/active_directory.rb
#remove_admin_group(value) ⇒ Array <String>
Remove a specific admin group from the admin_groups
500 501 502 503 504 505 506 507 508 509 510 |
# File 'lib/jamf/api/classic/api_objects/directory_binding_type/active_directory.rb', line 500 def remove_admin_group(value) raise Jamf::InvalidDataError, "Admin group being removed must be a string." unless value.is_a? String raise Jamf::InvalidDataError, "Admin group #{value} is not in the current admin group(s)." unless @admin_groups.include? value @admin_groups.delete value # Set the object to needing to be updated. self.container&.should_update return @admin_groups end |