Renvoie la collection d'utilisateurs associée au référentiel de schéma. Il s'agit d'une propriété en lecture seule ; elle peut être visualisée mais pas définie.
Each element in the returned collection is a User Object.
VBScript
adminSession.Users
Perl
$adminSession->GetUsers();
VBScript
set adminSession = CreateObject("ClearQuest.AdminSession") set Session = CreateObject("ClearQuest.Session") adminSession.Logon "admin", "admin", "" set userList = adminSession.Users For each userObj in userList userName = userObj.Name SessionObj.OutputDebugString "Found user: " & userName Next
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 list of users in the repository. $userList = $adminSession->GetUsers(); #Get the number of users $numUsers = $userList->Count(); #Iterate through the users for ( $x=0; $x<$numUsers; $x++ ) { #Get the specified item in the collection of users $userObj = $userList->Item( $x ); #Get the name of the user $userName = $userObj->GetName(); } CQAdminSession::Unbuild($adminSession);