VMware NSX
Administrative password changes performed via the CLI do not automatically update management plane metadata status flags. Per security design, the account remains in a "PASSWORD_EXPIRED" state until the expiration flag is explicitly cleared or the status is toggled through the management interface.
Method 1: Fix using CLI (Immediate Method)
SSH to the NSX Manager as admin.
Verify the expiry date to confirm it is still in the past: get user <USER_NAME> password-expiration
Clear the expiration by setting it to never expire (recommended for service accounts): clear user <USER_NAME> password-expiration Alternatively, to set a new 90-day period: set user <USER_NAME> password-expiration 90
Confirm the status change: get user <USER_NAME> password-expiration
Method 2: Fix using Deactivate/Activate (UI) If you cannot use SSH, you can toggle the user account status via the UI.
Log in to the NSX Manager UI as an admin user.
Navigate to System > User Management > Users.
Select the affected user, click Deactivate, and then immediately click Activate again. This process forces a reset of the expiration flag (90 days).
Method 3: API Call to Reset Password Expiry
Retrieve the User ID by finding the specific userid for the local user.
Method: GET
Endpoint: https://<NSX_MANAGER_IP>/api/v1/node/users
Note: Predefined IDs are typically 10001 (admin), 10002 (audit), 10003 (guestuser1), and 10004 (guestuser2).
Update User Status and Expiration to reset the account to ACTIVE and extend the expiration.
Method: PUT
Endpoint: https://<NSX_MANAGER_IP>/api/v1/node/users/<userid>
Payload:
{
"status": "ACTIVE",
"password_change_frequency": 9999,
"password_reset_required": false
}