Editing a User Using the Command Line Interface

Updated

Use XML to edit a user.

You can include the XML parameters in the xml file, or you can specify them on the command line when they frequently change. For more information about command line parameters and XML elements, see Command Line - Syntax.

Procedure

  1. Run the qlogin command to log on to the CommServe computer.

  2. Download the modify_user_template.xml file to the computer where you will run the command.

  3. To define the parameter values, do either of the following:

    • Open the modify_user_template.xml file and update the XML parameters.

    • Type the parameters on the command line using the following format: -parameter_name parameter_value.

    For information about supported parameters, see XML Parameters for User Operations.

  4. On the command line, go to software_installation_directory/Base, and then run the following command.

    qoperation execute -af modify_user_template.xml
        
    
  5. Run the qlogout command to log off the CommServe computer.

Example: Dissociate a User from a User Group

The following command disassociates a user from a user group. In this example, the parameters are listed on the command line:

qoperation execute -af modify_user_template.xml -userEntity/userName jsmith -associatedUserGroupsOperationType DELETE -associatedUserGroups/userGroupName consultants
    

The following command updates a user's password. In this example, the parameters are listed on the command line:

qoperation execute -af modify_user_template.xml -userEntity/userName jsmith -password H77y77h -validationParameters/password O%rr123
    

Your Opinion Matters!

How likely are you to recommend Commvault's documentation site?

0 = Not likely at all 10 = Extremely likely