Back to Materialize

REVOKE ROLE

doc/user/content/sql/revoke-role.md

1231.2 KB
Original Source

REVOKE revokes membership of a role from the target role.

Syntax

mzsql
REVOKE <role_to_remove> [, ...] FROM <target_role> [, ...];
Syntax elementDescription
<role_to_remove>The name of the role to remove from the <target_role>.
<target_role>The name of the role from which the to remove the <role_to_remove>.

Examples

mzsql
REVOKE data_scientist FROM joe;
mzsql
REVOKE data_scientist FROM joe, mike;

Privileges

The privileges required to execute this statement are:

{{% include-headless "/headless/sql-command-privileges/revoke-role" %}}

Useful views