diff --git a/lib/private/Group/Group.php b/lib/private/Group/Group.php index 2ef4d2ee23fd3..a9d6d00d2d8e0 100644 --- a/lib/private/Group/Group.php +++ b/lib/private/Group/Group.php @@ -183,7 +183,11 @@ public function addUser(IUser $user) { } foreach ($this->backends as $backend) { if ($backend->implementsActions(\OC\Group\Backend::ADD_TO_GROUP)) { - $backend->addToGroup($user->getUID(), $this->gid); + try { + $backend->addToGroup($user->getUID(), $this->gid); + } catch (\Throwable $t) { + continue; + } if ($this->users) { $this->users[$user->getUID()] = $user; }