How do I get a list of nodes that have a reference to a given user?
You can use an entity query:

$nids = \Drupal::entityQuery('node')
  -&gt;condition('type', 'article')
  -&gt;condition('field_allowed_editors', $userid)
  -&gt;execute();                          


This will result in an array with all node id's that match the conditions.