Use this command to create a new user.
Purpose
Use the
createUser command
to create a new user in the default repository or the repository specified
by the parent parameter of the command. The command creates a PersonAccount
entity in the default realm.
If successful, the createUser command
returns the unique name of the newly created user.
Syntax
createUser { -uid uid -cn commonname -sn surname
-password password [-confirmPassword password]
[-mail mail] [-parent parent] }
Parameters
- -uid uid
- Specifies the unique ID for the user that you want to create.
Virtual member manager then creates a uniqueId value and a uniqueName
value for the user. This parameter maps to the uid property in virtual
member manager.
- -password password
- Specifies the 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 paremeter. This parameter maps to the password property
in virtual member manager.
- -cn commonname
- Specifies the first name or given name of the user. This parameter
maps to the cn property in virtual member manager.
- -sn surname
- Specifies the last name or family name of the user. This parameter
maps to the sn property in virtual member manager.
- -mail mail
- Specifies the e-mail address of the user. This parameter maps
to the ibm-PrimaryEmail property in virtual member manager.
- -parent parent
- Specifies the repository in which you want to create the user.
This parameter maps to the parent property in virtual member manager.
Sample
To create a user named Dan Meyers with
a unique ID of dmeyers, an e-mail address of dmeyers@acme.com, and
a password of tempPass, issue this command:
$AdminTask createUser {-uid dmeyers –password tempPass -confirmPassword tempPass
–cn Dan –sn Meyers –mail dmeyers@acme.com}