Crea un nuovo utente e lo associa al repository schema.
L'oggetto restituito non contiene informazioni. Per aggiungere le informazioni sull'utente a questo oggetto, assegnare i valori alle relative proprietà. Per informazioni sulle proprietà dell'utente, consultare l'argomento Oggetto User.
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; # Create a Rational ClearQuest admin session my $adminSession = CQAdminSession::Build(); # Logon as admin $adminSession->Logon( "admin", "admin", "" ); # Create the user "jsmith" object my $newUserObj = $adminSession->CreateUser( "jsmith" ); die "Unable to create the user!\n" unless $newUserObj; # Set the new user's password to secret $newUserObj->SetPassword("secret"); # All done. CQAdminSession::Unbuild($adminSession);