Przejdź do głównej zawartości

GetManager

This function returns specified user’s manager username.

GetManager("userLogin");
  • userLogin – (String) The login of the user for which manager is to be found

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.

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