How to print out usernames using EntityFieldQuery
Since user_load_multiple() returns an array of user objects you need to use the '->' in order to access them.

$output = '';
foreach ($users as $key =&gt; $value) {
  $output .= "index: $key; name: $value-&gt;name&lt;br /&gt;";
}
return $output;