Creates a new user and associates it with the schema repository.
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;
# 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);