$api->user()
Returns the user object for the given id or returns the current authenticated user if no id is passed
$api->user(string $id = null): Kirby\Cms\User|nullParameters
| Name | Type | Default | Description | 
|---|---|---|---|
| $id | string | null | User's id | 
Return type
Kirby\Cms\User|null
Exceptions
| Type | Description | 
|---|---|
| Kirby\Exception\NotFoundException | if the user for the given id cannot be found |