$user->username() Returns the username which is the given name or the email as a fallback kirby/src/Cms/User.php#L873 $user->username(): string|null Return type string|null Parent class Kirby\Cms\User Example <?= $kirby->user('bastian@example.com')->username() ?>