getting a target_id value for for users in particular node drupal 8
Looks like this one has to be solved this way

  $members = $node-&gt;field_members;
  foreach ($members as $member) {
      $members_ids[] = $member-&gt;getValue()['target_id'];
  }