diff --git a/lib/private/User/Manager.php b/lib/private/User/Manager.php index ec048a2d08a89..7fdbefea3f39a 100644 --- a/lib/private/User/Manager.php +++ b/lib/private/User/Manager.php @@ -852,13 +852,7 @@ public function getSeenUsers(int $offset = 0, ?int $limit = null): \Iterator { $offset += $batchSize; foreach ($userIds as $userId) { - foreach ($this->backends as $backend) { - if ($backend->userExists($userId)) { - $user = new LazyUser($userId, $this, null, $backend); - yield $userId => $user; - break; - } - } + yield $userId => $this->getExistingUser($userId); } } while (count($userIds) === $batchSize && $limit !== 0); }