REVOKE ROLE
Synopsis
The REVOKE ROLE
statement is used to revoke a role (which represents a group of permissions and the SUPERUSER status) from another role.
This statement is enabled by setting the YB-TServer configuration option use_cassandra_authentication
to true
.
Syntax
Diagram
revoke_role
Grammar
revoke_role ::= REVOKE ROLE role_name FROM role_name
Where
role_name
is a text identifier.
Semantics
- Both roles must exist or an error will be raised.
- Permission
AUTHORIZE
onALL ROLES
or on the roles being used in the statement is necessary. Otherwise, an unauthorized error will be returned. - You cannot revoke a role that hasn’t been granted or an error will be raised.
Examples
cqlsh:example> REVOKE ROLE project_y from diana;
See also
当前内容版权归 YugabyteDB 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 YugabyteDB .