Update account options
Turn account options on or off: enabled, password never expires, and must change password at next sign-in; empty options stay as they are.
Command in the Active Directory toolkit · id ooa.active_directory/update_account_options · 11 inputs (1 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Username | String | Yes | Logon name (sAMAccountName or UPN), full name, or distinguished name. | |
| Enabled | Boolean | No | Enable (true) or disable (false) the account. | |
| Password never expires | Boolean | No | Whether the password never expires. | |
| Must change password | Boolean | No | Whether a password change is required at next sign-in. | |
| Session | String | No | ad | Session name. |
| Smart card required | Boolean | No | Whether a smart card is required for interactive sign-in. | |
| Not delegated | Boolean | No | Whether the account is sensitive and cannot be delegated. | |
| Password not required | Boolean | No | Whether the account may have an empty password (normally false). | |
| No kerberos preauth | Boolean | No | Whether Kerberos pre-authentication is not required (normally false). | |
| Account expires | String | No | Last day the account can be used (yyyy-MM-dd, the account ends at the start of the next day UTC), or never. | |
| Cannot change password | Boolean | No | Whether the user is stopped from changing their own password (Active Directory only; changes the object's permissions). |
Outputs
| Output | Type | What it is |
|---|---|---|
| user_account_control | Number | The account control flags after the change. |