via make.wordpress.org => original post link
Prior to the WordPress 6.0 release the function WP_User_Query would only accept ID and all_with_meta/all in the fields parameter.
The change
You can now pass any of these options in the field parameter and get the associated values back