by David Monllaó.
Hi Tomasz,
core_user_get_users is internally using user_get_user_details, which only returns the current user preferences (https://github.com/moodle/moodle/blob/master/user/lib.php#L540)