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 ENABLE reference

Enterprise:

RBAC provides fine-grained database permissions management.

ALTER USER ... ENABLE turns a disabled user account back on.


Syntax​

ALTER USER userName ENABLE;

Description​

The user can authenticate again, with the permissions, group memberships and tokens it had before it was disabled. Nothing is restored or re-granted, because nothing was removed.

A user is enabled when created, so this is only needed after DISABLE.

Examples​

ALTER USER john ENABLE;

Verify with SHOW USERS, which reports true in its enabled column.

See also​