I have created fields for users and also entry type. I want to get only users fields. I have retrieved custom fields but that returns all the fields.
$users = \craft\elements\User::find()->id(USERID)->one();
print_r($users->getbehaviors()['customFields']);
I know how to get user custom fields with field Handle. I need only users fields (whole users fields not single) that admin assign in the CP. ( settings/users/fields ).