getUser
Syntax | getUser(user) | Package |
|
Alias |
| Pkg Usage |
|
Description
Gets the user by username or key.
Parameters
Parameter name | Type | Required | Description |
|---|---|---|---|
user | String | Yes | Username or key. Searches by the user key first and if there is no result by the user name as well. |
Return Type
Returns the user.
Example
JUser usr = getUser("john.doe");
The look-up is first made after the userkey, then after the username.