ALTER USER statement can be used to add, change, or remove a user’s 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 ALTER ROLE.
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 CREATEROLE role option.
Synopsis
SeeALTER ROLE: Synopsis.
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 client authentication:Allow a user to create other users and manage authentication methods for the new users
The following example allows the user to create other users and manage authentication methods for them:Allow a user to create and rename databases
The following example allows the user to create or rename databases:Allow a user to pause, resume, and cancel non-admin jobs
The following example allows the user to pause, resume, and cancel jobs:Allow a user to see and cancel non-admin queries and sessions
The following example allows the user to cancel queries and sessions for other non-admin roles:
Allow a user to control changefeeds
The following example allows the user to runCREATE CHANGEFEED:

