appManager->isEnabledForAnyone('user_migration')) { throw new UserMigrationException('The user_migration app is not enabled; per-user backup/restore is unavailable'); } $this->appManager->loadApp('user_migration'); return Server::get(\OCA\UserMigration\Service\UserMigrationService::class); } }