For AI agents: the complete documentation index is at llms.txt. Every page is also available as markdown by appending .md to its URL, or by sending an Accept: text/markdown request header.

ALTER USER WITH PASSWORD reference

Enterprise:

RBAC provides fine-grained database permissions management.

ALTER USER ... WITH PASSWORD sets a user's password.


Syntax​

ALTER USER userName WITH PASSWORD password;

Description​

Setting a password replaces any existing one. Empty passwords are rejected, so WITH PASSWORD '' cannot be used to clear one; use WITH NO PASSWORD instead.

Examples​

ALTER USER john WITH PASSWORD '1m@re@lh@cker';

Verify with:

SHOW USER john;
auth_typeenabled
Passwordtrue
JWK Tokenfalse
REST Tokenfalse

See also​