def _set_group(self, opts):
    if (opts.group is None):
        _exit_if_errors(['--group-name is required with --set-group'])
    (_, errors) = self.rest.set_user_group(opts.group, opts.roles, opts.description, opts.ldap_ref)
    _exit_if_errors(errors)
    _success(f"Group '{opts.group}' set")
def _set_group(self, opts):
    if (opts.group is None):
        _exit_if_errors(['--group-name is required with --set-group'])
    (_, errors) = self.rest.set_user_group(opts.group, opts.roles, opts.description, opts.ldap_ref)
    _exit_if_errors(errors)
    _success(f"Group '{opts.group}' set")