How to get the list of fields available in the user entity
You can get user entity field definitions list by using the following code:

$user_field_definitions = \Drupal::service('entity_field.manager')
  -&gt;getFieldDefinitions('user', 'user');
// List of user field definitions.
dump($user_field_definitions);