lib/jss/api_object/directory_binding_type/active_directory.rb
# Remove a specific admin group from the admin_groups
# 
# @author Tyler Morgan
#
# @param newvalue [String] The admin group name you want to remove from the admin groups.
#
# @raise [JSS::InvalidDataError] If the value provided is not a String
# @raise [JSS::InvalidDataError] If the group provided is not in the admin_group array
#
# @return [Array <String>] An array of all the admin groups currently set.
Remove a specific admin group from the admin_groups
Remove a specific admin group from the admin_groups
def remove_admin_group(value)
                raise JSS::InvalidDataError, "Admin group being removed must be a string." unless value.is_a? String
                raise JSS::InvalidDataError, "Admin group #{value} is not in the current admin group(s)." unless @admin_groups.include? value
                @admin_groups.delete value
                self.container&.should_update
                return @admin_groups
            end
def remove_admin_group ( value ) raise JSS :: InvalidDataError , "Admin group being removed must be a string." unless value . is_a? String raise JSS :: InvalidDataError , "Admin group #{value} is not in the current admin group(s)." unless @admin_groups . include? value @admin_groups . delete value self . container &. should_update return @admin_groups end
Remove a specific admin group from the admin_groups
Remove a specific admin group from the admin_groups
# Set the object to needing to be updated.
An array of all the admin groups currently set.
An array of all the admin groups currently set .
Array <String>
[JSS::InvalidDataError] If the value provided is not a String
[ JSS :: InvalidDataError ] If the value provided is not a String
[JSS::InvalidDataError] If the group provided is not in the admin_group array
[ JSS :: InvalidDataError ] If the group provided is not in the admin_group array
value
newvalue
The admin group name you want to remove from the admin groups.
The admin group name you want to remove from the admin groups .
author
None