config->getUserValue($uid, 'core', 'deleted') === 'true'; } public function getHome(string $uid): string|false { return $this->config->getUserValue($uid, 'core', 'deleted.home-path') ?: false; } public function getUsers($search = '', $limit = null, $offset = null) { return $this->config->getUsersForUserValue('core', 'deleted', 'true'); } /** * Unmark a user as deleted. * This typically the case if the user deletion failed in the backend but before the backend deleted the user, * meaning the user still exists so we unmark them as it still can be accessed (and deleted) normally. */ public function unmarkUser(string $userId): void { $this->config->deleteUserValue($userId, 'core', 'deleted'); $this->config->deleteUserValue($userId, 'core', 'deleted.home-path'); } }