GetUser

Description

Renvoie l'objet utilisateur avec le nom spécifié.

The userName parameter corresponds to the value in the Name of the User object.

Syntaxe

VBScript

adminSession.GetUser(userName) 

Perl

$adminSession->GetUser(userName); 
Identificateur
Description
adminSession
The AdminSession object representing the current schema repository access session.
userName
A String containing the name of the user object you want.
Return value
The User Object with the specified name, or null if no such user exists.

Exemple

VBScript

set adminSession = CreateObject("ClearQuest.AdminSession")
adminSession.Logon "admin", "admin", ""

set userObj = adminSession.GetUser ("Dev") 

Perl

use CQPerlExt;

# Créez une session admin Rational ClearQuest
$adminSession= CQAdminSession::Build();

#Connectez-vous en tant qu'admin
$adminSession->Logon( "admin", "admin", "" );

#Get the user "Dev" object
$userObj = $adminSession->GetUser("Dev");

#...

CQAdminSession::Unbuild($adminSession); 

Commentaires