Crée un utilisateur et l'associe avec le référentiel de schéma.
The returned object contains no information. To add user information to this object, assign values to its properties. For information on user properties, see the User Object.
VBScript
adminSession.CreateUser(userName)
Perl
$adminSession->CreateUser(userName);
VBScript
set adminSession = CreateObject("ClearQuest.AdminSession") adminSession.Logon "admin", "admin", "" set newUserObj = adminSession.CreateUser ("jsmith")
Perl
use CQPerlExt; # Créez une session admin Rational ClearQuest my $adminSession = CQAdminSession::Build(); #Connectez-vous en tant qu'admin $adminSession->Logon( "admin", "admin", "" ); # Créez l'objet "jsmith" utilisateur my $newUserObj = $adminSession->CreateUser( "jsmith" ); die "Unable to create the user!\n" unless $newUserObj; # Définissez le mot de passe du nouvel utilisateur sur secret $newUserObj->SetPassword("secret"); # Terminé. CQAdminSession::Unbuild($adminSession);