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 a user via his user name (getUserByUsername)

Scroll Prev Top Next More

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