The "createAccount" action creates an account that an application or user can use to log into the server. To designate privileges, you can assign one or more roles to your accounts - see the action "assignRolesToAccounts".
Request examples
Minimal
{
"action": "createAccount",
"params": {
"username": "NewAccount1"
},
"authToken": "replaceWithAuthTokenFromCreateSession"
}Maximal
{
"api": "admin",
"action": "createAccount",
"params": {
"username": "NewAccount2",
"password": "CorrectHorseBatteryStaple",
"accountDescription": "NewAccount2 will be used solely to test deletion",
"enableDatetime": "2024-01-01",
"disableDatetime": "2024-12-31",
"lockoutAfterNFailedAttempts": 5,
"maxDaysBeforePasswordMustChange": 14,
"maxMinutesBeforeNextLogin": 0,
"memoryLimit": 1048576,
"memoryRule": "default"
},
"requestId": "1",
"authToken": "replaceWithAuthTokenFromCreateSession"
}
Properties
Request properties ("params")
| Property | Description | Default | Type | Limits (inclusive) |
|---|---|---|---|---|
accountDescription |
The
|
Optional with default of ""
|
string | 0 to 65,500 bytes |
disableDatetime |
The
|
Optional with default of ""
|
date | Any date after "0336-10-07"
|
enableDatetime |
The
|
Optional with default of ""
|
date | Any date after "0336-10-07"
|
lockoutAfterNFailedAttempts |
The
|
Optional with default of the session's "LOGON_FAIL_LIMIT" property |
integer |
0 to 2147483647
|
maxDaysBeforePasswordMustChange |
The
|
Optional with default of ""
|
integer |
0 to 2147483647
|
maxMinutesBeforeNextLogin |
The
|
Optional with default of the session's "LOGON_MUST_TIME" property |
integer |
0 to 35791394
|
memoryLimit |
The
|
Optional with default of the session's "USR_MEMORY" property |
integer |
0 to 2147483647
|
memoryRule |
The
|
Optional with default of the session's "USR_MEM_RULE" property |
string |
|
password |
The
|
Optional with default of Required for the |
string | 0 to 256 bytes |
username |
The
In
In Key-Value actions, the
|
Required - No default value
Optional with default of the account name of the currently logged-in user for Key-Value actions
|
string | 1 to 64 bytes |