ALTER USER cannot change engine-managed system users. The bootstrap admin configured in auth.admin is one such user where that configuration is used.
For more information, see Managing users.
Users can modify most of their own account settings without requiring RBAC permissions, except when altering LOGIN configurations, a SERVICE ACCOUNT, or
PASSWORD_LOGIN.ALTER USER SET
Syntax
Parameters
Example
The following command will rename the “alex” account to “alexs”.ALTER USER PASSWORD_LOGIN
When authentication is enabled,PASSWORD_LOGIN controls whether a user can authenticate with a password. Without OIDC, users created with a password receive this capability by default, but the SQL toggle is still available. Disabling it blocks their password login. An account admin with permission to modify the target user can enable or disable the capability. Owning your own user record or having permission to modify another user does not remove the account-admin requirement.
ALTER USER OWNER TO
Change the owner of a user. The current owner of a user can be viewed in theinformation_schema.users view on user_owner column.
Check ownership page for more info.