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 NO PASSWORD reference

Enterprise:

RBAC provides fine-grained database permissions management.

ALTER USER ... WITH NO PASSWORD removes a user's password.


Syntax​

ALTER USER userName WITH NO PASSWORD;

Description​

This is the only way to clear a password. WITH PASSWORD '' does not work, because empty passwords are rejected.

Removing the password does not disable the user. If it still holds a JWK or REST token it can continue to authenticate with that; to stop access entirely, use DISABLE or drop its tokens with DROP TOKEN.

Examples​

ALTER USER john WITH NO PASSWORD;

Verify with:

SHOW USER john;
auth_typeenabled
Passwordfalse
JWK Tokenfalse
REST Tokenfalse

See also​