List of users on the page

I try to list a list of users on a page. This is looked promising to be but is wrong:

<?= $kirby->users()->filterBy('role', 'admin') ?>

because it gives me the encrypted user names like this: “f9xawzFq”.

It doesn’t make sense to echo a collection of users. You have to loop through them

<?hp
$users = $kirby->users()->filterBy('role', 'admin'); // returns a collection, not a single user
foreach ( $users as $user ) 
  echo $user->email();
}

A collection is something traversable, potentially consisting of multiple items.

Of course - a loop (sigh).

:hugs: