GetManager
This function returns specified user’s manager username.
Syntax
GetManager("userLogin");
Function arguments
- userLogin – (String) The login of the user for which manager is to be found
Return value
This function returns String.
This function returns manager login for specified user or current user’s login (same as CurrentUser function) if there is no manager assigned to specified user. Alternatively, empty string will be returned if specified login does not exist or assigned manager has no login name.
Examples
Example 1:
This will find manager login for user 'r.simmons’ and store return value in 'RichardsManager’ variable.
RichardsManager = GetManager("r.simmons");
Example 2:
This will find manager login for currently logged in user and store return value in 'myManager’ variable.
myManager = GetManager(CurrentUser());