GetUser
Description
Returns the user object with the specified name.
The userName parameter
corresponds to the value in the Name of
the User object.
Syntax
Perl
$adminSession->GetUser(userName);
- Identifier
- 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.
Example
Perl
use CQPerlExt;
#Create an admin session
$adminSession= CQAdminSession::Build();
#Logon as admin
$adminSession->Logon("admin","admin","");
#Get the user "Dev" object
$userObj = $adminSession->GetUser("Dev");
#...
CQAdminSession::Unbuild($adminSession);