With this function you get access to an optional user.
Parameter |
Type |
Description |
|---|---|---|
$username |
string |
User name of the required user |
Function returns an object of the type ApiUser which can than be used for calling methods for retrieval of user properties.
Example:
$user = $this->getUserByUsername('admin');
return $user->getPrename();