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());
Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.