Skip to content

Kirby 4.4.1

$appusers->user()

Returns a specific user by id or the current user if no id is given

$appusers->user(?string $id = null, bool $allowImpersonation = true): Kirby\Cms\User|null

Parameters

Name Type Default Description
$id string|null null
$allowImpersonation bool true If set to false, only the actually
logged in user will be returned
(when $id is passed as null)

Return type

Kirby\Cms\User|null

Parent class

Kirby\Cms\AppUsers