How do I get the value of a current user’s custom field?

Add this to the frontend and you should be able to adjust it to display whatever field you’ve added.

$user_info = get_userdata(get_current_user_id());
echo 'Username: ' . $user_info->user_login . "<br>";
echo 'User roles: ' . implode(', ', $user_info->roles) . "<br>";
echo 'User ID: ' . $user_info->ID . "<br>";
echo 'User Agent Department: ' . $user_info->agentdept . "<br>";
echo 'User Agent Mobile: ' . $user_info->agentmobile . "<br>";