diff --git a/lib/private/files/filesystem.php b/lib/private/files/filesystem.php
index 51a241a4e338ff764d858cdd214923afc9fa8465..c7dc99c55cb6fdf05cc8eea35535e7b2b85f7136 100644
--- a/lib/private/files/filesystem.php
+++ b/lib/private/files/filesystem.php
@@ -431,6 +431,7 @@ class Filesystem {
 	 */
 	public static function clearMounts() {
 		if (self::$mounts) {
+			self::$usersSetup = array();
 			self::$mounts->clear();
 		}
 	}