diff --git a/apps/user_ldap/lib/Command/CheckGroup.php b/apps/user_ldap/lib/Command/CheckGroup.php index 8617b06c57f10..91faa11888cce 100644 --- a/apps/user_ldap/lib/Command/CheckGroup.php +++ b/apps/user_ldap/lib/Command/CheckGroup.php @@ -89,6 +89,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int if ($exists === true) { $output->writeln('The group is still available on LDAP.'); if ($input->getOption('update')) { + $this->backend->getLDAPAccess($gid)->connection->clearCache(); $this->updateGroup($gid, $output, $wasMapped); } return 0;