Back to index
Summary
Create a new user.| This API applies to local users only. |
User or group lists:
The createUser and modifyUser commands can use an optional groupNames argument. The createGroup and modifyGroup commands can have an optional userNames argument. In each case, the argument is followed by a list of groups or names. Using ectool, your command string would be:
`ectool createGroup "New Group Name" --userNames "A Adams" "B Barker"`
To make this call via the Perl API, create a list of names and then pass a reference to the list as an optional parameter. The name of the optional parameter is singular, userName or userGroup; not the plural form used by ectool. For example:
# Run the procedure—pass a reference to the list of names $xPath = $cmdr\->createGroup("New Group Name", { "userName" => ['A Adams', 'B Burns'] });
You must specify a userName.
|
userNameStringrequiredThe user name. Email address of the user. fullUserNameStringoptionalFull name of the user. groupNameArrayoptionalList of groups that this user is in. passwordStringoptionalThe users password. personaArrayoptionalList of personas that this user has. |
Usage
Perl
$cmdr->createUser( "test-userName" # userName # optionals );
ectool
ectool createUser \ "test-userName" `# userName` \ # optionals