Use XML to create a user.
You can specify parameter values on the command line or in the XML template. For more information on command line parameters and XML elements, see Command Line - Syntax.
Procedure
-
Download the create_user_template.xml file to the computer where you will run the command.
-
On the command line, go to software_installation_directory/Base and type the following command:
qoperation execute -af create_user_template.xml -userEntity/userName $[user_name] -password $[password]
For information on additional parameters, see XML Parameters for User Operations.
You can also define parameter values in the XML file:
- Open the create_user_template.xml file and update the XML parameters.
Example
The following command creates a new user who is part of the master user group. In this example, the parameters are listed on the command line:
qoperation execute -af $[create_user_template.xml] -userEntity/userName $[jsmith] -password $[P123str] -fullName '$[Jane Smith]' -associatedUserGroups/userGroupName $[master] -email $[jsmith@mycompany.com] -description '$[backup admin]'