diff --git a/lib/private/Files/SetupManager.php b/lib/private/Files/SetupManager.php index f1799798ccb0a..508d742553956 100644 --- a/lib/private/Files/SetupManager.php +++ b/lib/private/Files/SetupManager.php @@ -335,7 +335,9 @@ public function setupRoot(): void { * @return IUser|null */ private function getUserForPath(string $path) { - if (substr_count($path, '/') < 2) { + if (strpos($path, '/__groupfolders') === 0) { + return null; + } elseif (substr_count($path, '/') < 2) { if ($user = $this->userSession->getUser()) { return $user; } else {