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