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 HCL Compass Designer, or if you have access to the schema repository, you can use the AdminSession object to create a new User object.

Syntax

VBScript


session.GetUserLoginName 

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.

Examples

VBScript

set sessionObj = GetSession 

' Get the user's personal information 
userName = sessionObj.GetUserFullName 
userLogin = sessionObj.GetUserLoginName 
userEmail = sessionObj.GetUserEmail 
userPhone = sessionObj.GetUserPhone 
userMisc = sessionObj.GetUserMiscInfo 

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