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

Syntaxe

VBScript

session.GetUserLoginName 

Perl

$session->GetUserLoginName(); 
Identificateur
Description
session
Objet Session représentant la session en cours d'accès à la base de données.
Valeur renvoyée
A String containing the login name (such as "jjones") of the user who is logged in for this session.

Exemples

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

Commentaires en retour