createUser
Syntax
createUser(userId, password, [groupIds], [isAdmin=false])
Arguments
userId is a string indicating a user name. It can only contain letters, underscores, or numbers. It cannot start with numbers. The length cannot exceed 30 characters.
password is a string indicating the password. It cannot contain space or control characters.
groupIds (optional) is a STRING scalar/vector indicating the group(s) the user belongs to.
isAdmin (optional) is a Boolean value indicating whether the user is an administrator.
Details
Create an user. It can only be executed by an administrator.
The groups in groupIds must have been created with createGroup.
Examples
Create a user with user name 'JohnSmith' and password 'Qb0507'. This user belongs to group "research" and group "production. He is not an administrator.
createUser(`JohnSmith, "Qb0507#$", `research`production);