Print

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());
Czy artykuł był pomocny?
0 na 5 gwiazdek
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
How Can We Improve This Article?