an array of backend class name as key and count number as value * @since 8.0.0 */ public function countUsers(); /** * @param \Closure $callback * @psalm-param \Closure(\OCP\IUser):void $callback * @param string $search * @since 9.0.0 */ public function callForAllUsers(\Closure $callback, $search = ''); /** * returns how many users have logged in once * * @return int * @since 11.0.0 */ public function countDisabledUsers(); /** * returns how many users have logged in once * * @return int * @since 11.0.0 */ public function countSeenUsers(); /** * @param \Closure $callback * @psalm-param \Closure(\OCP\IUser):?bool $callback * @since 11.0.0 */ public function callForSeenUsers(\Closure $callback); /** * returns all users having the provided email set as system email address * * @param string $email * @return IUser[] * @since 9.1.0 */ public function getByEmail($email); /** * @param string $uid The user ID to validate * @param bool $checkDataDirectory Whether it should be checked if files for the ID exist inside the data directory * @throws \InvalidArgumentException Message is an already translated string with a reason why the ID is not valid * @since 26.0.0 */ public function validateUserId(string $uid, bool $checkDataDirectory = false): void; }