# $field->toUsers()

Returns a users collection from a yaml list of user email addresses in the field

****

- Source: <https://github.com/getkirby/kirby/tree/5.5.3/config/methods.php#L322>

****

```php
$field->toUsers(string $separator = 'yaml'): Kirby\Cms\Users
```

## Parameters

| Name | Type | Default | Description |
| ---- | ---- | ---- | ---- |
| `$separator` | `string` | `'yaml'` | – |

## Return type

`Kirby\Cms\Users`

This method modifies the existing `$field` object it is applied to and returns it again.


## Examples

```php
<ul class="authors">
<?php foreach ($page->authors()->toUsers() as $author): ?>
    <li>
        <h2><?= $author->name() ?></h2>
        <?= $author->bio()->kirbytext() ?>
    </li>
<?php endforeach ?>
</ul>
```