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 SERVICE ACCOUNT DISABLE reference

Enterprise:

RBAC provides fine-grained database permissions management.

ALTER SERVICE ACCOUNT ... DISABLE turns off a service account without deleting it.


Syntax​

ALTER SERVICE ACCOUNT serviceAccountName DISABLE;

Description​

A disabled service account keeps its permissions and tokens; it simply cannot authenticate, and cannot be assumed, until it is enabled again.

To remove one permanently instead, use DROP SERVICE ACCOUNT.

Examples​

ALTER SERVICE ACCOUNT client_app DISABLE;

Verify with SHOW SERVICE ACCOUNTS, which reports false in its enabled column.

See also​