List users with custom fields Is there way to list all users? I haven't found such method on UserInterface. The few hints I found on internet are for version 7 or using entityManager which is deprecated. Loading custom fields is a bonus.
$users = \Drupal\user\Entity\User::loadMultiple();
$field = $user-&gt;get('field_custom_field');
$value = $field-&gt;getString();