updateUser command

Use this command to modify the properties of a user.

Purpose

Use the updateUser command to modify the following properties of a user: These are the only properties that you can modify with the updateUser command.

If successful, the updateUser command returns the unique name of the updated user.

Syntax

updateUser { -uniqueName uniqueName [-uid uid] [-password password] 
             [-confirmPassword password] [-cn commonname] [-sn surname] 
             [-mail mail] } 

Parameters

-uniqueName uniqueName
Specifies the unique name value for the user that you want to modify the properties for. This parameter maps to the uniqueName property in virtual member manager.
-uid uid
Specifies the new unique ID value for the user. This parameter maps to the uid property in virtual member manager.
-password password
Specifies the new password for the user. This parameter maps to the password property in virtual member manager.
-confirmPassword password
Specifies the password again to validate how it was entered on the password parameter. This parameter maps to the password property in virtual member manager.
cn commonname
Specifies the new first name or given name, of the user. This parameter maps to the cn property in virtual member manager.
-sn surname
Specifies the new last name or family name of the user. This parameter maps to the sn property in virtual member manager.
-mail mail
Specifies the new e-mail address of the user. This parameter maps to the mail property in virtual member manager.

Sample

To modify the uid of the user Dan Meyers from from dmeyesr,cn=users,dc=yourco,dc=com to dameyers, issue this command:
$AdminTask updateUser {-uniqueName uid=dmeyers,cn=users,dc=yourco,dc=com –uid dameyers}
To modify the e-mail address and common name of the user Dan Meyers, whose uniqueName is uid=dmeyers,cn=users,dc=yourco,dc=com, issue this command:
$AdminTask updateUser {uniqueName uid=dmeyers,cn=users,dc=yourco,dc=com 
                       –mail meyersd@acme.com -cn Daniel}
Related concepts
Command format
Terms of use | Feedback
(C) Copyright IBM Corporation 2005. All Rights Reserved.
IBM virtual member manager 6.1