Update Local Accounts
Update selected fields in local user account properties.
Request
URLURL
Path Parameters
Path Parameters
User login name The parameter must be an identifier for the resource type: com.vmware.appliance.local_accounts.
Header Parameters
Header Parameters
Required session ID, acquired from Create Session API under CIS product
vmware-api-session-id example
"b00db39f948d13ea1e59b4d6fce56389"
Request Body
{
"days_after_password_expiration": 0,
"email": "string",
"enabled": false,
"full_name": "string",
"inactive_after_password_expiration": false,
"max_days_between_password_change": 0,
"min_days_between_password_change": 0,
"old_password": "string",
"password": "string",
"password_expires": false,
"password_expires_at": "string",
"roles": [
"string"
],
"warn_days_before_password_expiration": 0
}
Number of days after password expiration before the account will be locked If unset, value will not be changed
Email address of the local account If unset, value will not be changed
Flag indicating if the account is enabled If unset, value will not be changed
Full name of the user If unset, value will not be changed
Flag indicating if the account will be locked after password expiration If unset, value will not be changed
Maximum number of days between password change If unset, value will not be changed
Minimum number of days between password change If unset, value will not be changed
Old password of the user (required in case of the password change, not required if superAdmin user changes the password of the other user) If unset, user may not have password set.
Password If unset, value will not be changed
Flag indicating if the account password expires If unset, value will not be changed
Date when the account’s password will expire If unset, value will not be changed
User roles If unset, value will not be changed When clients pass a value of this structure as a parameter, the field must contain identifiers for the resource type: com.vmware.appliance.roles. When operations return a value of this structure as a result, the field will contain identifiers for the resource type: com.vmware.appliance.roles.
Number of days of warning before password expires If unset, value will not be changed
Authentication
Errors
Errors
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
Code Samples
PowerCLI Client SDK Example
cURL Command
Vendor Extensions
x-vmw-doc-deprecated-method: patch
x-vmw-doc-deprecated-path: /rest/appliance/local-accounts/{username}
x-vmw-doc-operation: update