diff --git a/lib/private/User/Manager.php b/lib/private/User/Manager.php index 7f5b06cc5f654..32497efeb86c5 100644 --- a/lib/private/User/Manager.php +++ b/lib/private/User/Manager.php @@ -760,6 +760,7 @@ public function getLastLoggedInUsers(?int $limit = null, int $offset = 0, string ->andWhere($queryBuilder->expr()->eq('pref_login.configkey', $queryBuilder->expr()->literal('lastLogin'))) ->setFirstResult($offset) ->setMaxResults($limit) + ->runAcrossAllShards() ; // Oracle don't want to run ORDER BY on CLOB column