Availability
This routine is available starting with SIL Engine™ 3.1.1/SIL Engine™ 3.0.13.
Syntax
admCreateUser(username, displayName, email, password)
Starting with 4.0.9, an additional parameter has been added:
admCreateUser(username, displayName, email, password [, directoryName])
Alias
createUser(username, displayName, email, password [, directoryName])
Description
Creates a new user.Creates the user and configures it with the username, displayName, email, password and directoryName.
Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
username | string | yes | Username. |
displayName | string | yes | Display name. |
string | yes | Email. | |
password | string | yes | Password. |
directoryName | string | no | User directory name. |
Return type
boolean
Returns "true" if the user was created and "false" if not.
Example 1
admCreateUser("user", "fullname", "user@example.com", "password");
Example 2
admCreateUser("user2", "fullname2", "user2@example.com", "password", "JIRA Internal Directory");
See also