< img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=3131724&fmt=gif" />

Reset the Account Password

Reset the Password of a Regular User

The administrator who has the permission to manage users can change an account password. On the Accounts page, click the account of which you need to change the password. On the detail page, select Change Password from the More drop-down list.


Reset the Administrator Password

Execute the following command on the host cluster to change the password of any account.

kubectl patch users <USERNAME> -p '{"spec":{"password":"<YOURPASSWORD>"}}' --type='merge' && kubectl annotate users <USERNAME> iam.kubesphere.io/password-encrypted-


Make sure you replace <USERNAME> and <YOURPASSWORD> with the account and the new password in the command before you run it.