The "alterAccount" action alters an account that an application or user can use to log into the server. The account you want altered is specified with the "username" property. To receive privileges, an account is assigned to one or more roles - see the action "assignRolesToAccounts".
Request examples
Maximal
{
"api": "admin",
"action": "alterAccount",
"params": {
"username": "AccountToBeAltered",
"password": "NewPasswordForSpecifiedAccount",
"accountDescription": "New description for the specified account",
"enableDatetime": "2023-01-01",
"disableDatetime": "2033-12-31",
"lockoutAfterNFailedAttempts": 5,
"maxDaysBeforePasswordMustChange": 365,
"maxMinutesBeforeNextLogin": 0,
"memoryLimit": 1048576,
"memoryRule": "default"
},
"requestId": "1",
"authToken": "replaceWithAuthTokenFromCreateSession"
}Minimal
{
"action": "alterAccount",
"params": {
"username": "AccountToBeAltered",
"password": "NewPasswordForSpecifiedAccount"
},
"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 |