Please enable JavaScript to view this site.

The manual for the JobRouter developer

Navigation: Dashboard API > Methods and objects of the dashboard API > Usable methods

Access to the user (getUser)

Scroll Prev Top Next More

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();