ALTER USER can be used to add, change, or remove a password and to change the role options for a user.
You can use the keywords ROLE and USER interchangeably. ALTER USER is an alias for .
Considerations
- Password creation and alteration is supported only in secure clusters.
Required privileges
To alter other users, the user must be a member of theadmin role or have the role option.
Synopsis
See .Parameters
Role options
Examples
The following statements are run by the
root user that is a member of the admin role and has ALL privileges.Change a user’s password
Prevent a user from using password authentication
The following statement prevents the user from using password authentication and mandates certificate-based :Allow a user to create other users and manage authentication methods for the new users
The following example allows the user to and for them:Allow a user to create and rename databases
The following example allows the user to or databases:Allow a user to pause, resume, and cancel non-admin jobs
The following example allows the user to , , and jobs:Allow a user to see and cancel non-admin queries and sessions
The following example allows the user to cancel and for other non-admin roles:

