Loop through a multi value entity reference field working only on the first selected item
foreach ($Articles as $Article) {

  // Get the "Article Country" Value from the loaded article.
  $ArticleCountry = $Article-&gt;field_article_country-&gt;target_id; // shorter way

  // Set the 'User Country' value on the user account.
  $CurrentUser-&gt;field_user_article_countries[] = ['target_id' =&gt; $ArticleCountry]; // use array

}