With this function you get access to the authenticated user.
Function returns an object of the type ApiUser which can than be used for calling methods for retrieval of user properties.
Example:
$currentUser = $this->getUser();
return $currentUser->getUsername();