REVOKE ROLE

Revokes a role from a user, group, or service principal. Idempotent: revoking a non-existent assignment succeeds without error.

Category: securityPrivilege: ManageRolesDeltaForge extension

Syntax

REVOKE ROLE <role_name> FROM [USER | GROUP | SERVICE PRINCIPAL] <grantee>

Description

## Overview REVOKE ROLE removes a role assignment from a principal. The principal loses every privilege the role granted (subject to whatever other roles or direct grants the principal still holds). ## Behavior - The Control Plane idempotently removes the assignment. Revoking a role that was never granted to the principal succeeds with no error. - Existing sessions held by the principal are not invalidated by REVOKE ROLE. New requests evaluate the updated role set; previously cached permission tokens may continue to grant access until they expire. - Removing a role from a group affects every member of the group on next evaluation. ## Access Control Requires the `ManageRoles` privilege. ## Compatibility DeltaForge extension.

Parameters

NameTypeDescription
role_nameSpecifies the role to revoke.
grantee_typeSpecifies the grantee kind. Valid values: `USER`, `GROUP`, `SERVICE PRINCIPAL`.
granteeSpecifies the principal name.

Examples

REVOKE ROLE analyst FROM USER bob;
REVOKE ROLE data_engineer FROM GROUP platform_team;
REVOKE ROLE pipeline_runner FROM SERVICE PRINCIPAL etl_runner;

Pitfalls

See Also

Open in interactive docs →   DeltaForge home →