I try to use the function rwmb_get_field_settings() to retrieve user custom fields options like this:
$user_id=1;
$choices = rwmb_get_field_settings( 'section', [ 'object_type' => 'user' ], $user_id )[ 'options' ];
It works only if I'm logged into WP as a user, otherwise function returns empty.
On the other end, this works properly, logged or not-logged:
$section = rwmb_meta( 'section', ['object_type' => 'user'], $user_id )
Purpose: I added custom fields to users that can be displayed on the front, and I want normal (non-logged) users to be able to see user's custom fields on front...