GetUserLoginName
Description
Returns the name that was used to log in for this session.
Once created, you cannot change the login name of a user account. You must instead create a new user with the new account name. You can do this from DevOps Plan Designer, or if you have access to the schema repository, you can use the AdminSession object to create a new User object.
Syntax
Perl
$session->GetUserLoginName();
- Identifier
- Description
- session
- The Session object that represents the current database-access session.
- Return value
- A String containing the login name (such as "jjones") of the user who is logged in for this session.
Example
Perl
$sessionObj = $entity->GetSession();
#Get the user's personal information
$userName = $sessionObj->GetUserFullName();
$userLogin = $sessionObj->GetUserLoginName();
$userEmail = $sessionObj->GetUserEmail();
$userPhone = $sessionObj->GetUserPhone();
$userMisc = $sessionObj->GetUserMiscInfo();