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.
Note: If the Use global security settings option
is selected for the user realm or the Global federated
repositories option is selected as the realm type for
the specified domain, this command is executed on the federated repository
of the admin domain. However, configuration changes that are performed
on the domain are applied to the security domain-specific configuration.
Syntax
createUser { -uid uid -cn commonname -sn surname
-password password [-confirmPassword password]
[-mail mail] [-parent parent] [-securityDomainName domainName] }
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.
- -securityDomainName domainName
- Specifies the name that uniquely identifies the security domain.
If you do not specify this parameter, the command uses the global
federated repository.
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}