REVOKE ON EXTERNAL LOCATION

Revokes one or more privileges on an external location from a principal.

Category: securityPrivilege: ManageGrantsDeltaForge extension

Syntax

REVOKE <privilege> [, <privilege> ...] ON EXTERNAL LOCATION <name> FROM <principal>

Description

## Overview REVOKE ON EXTERNAL LOCATION removes one or more privileges from a principal. The revoke is idempotent for each privilege. ## Behavior - Multiple privileges in one statement are revoked atomically; if the principal lacks one of them, the others are still revoked. - WITH GRANT OPTION attached to the original grant is removed when the underlying privilege is revoked. - Privileges re-granted by the principal under WITH GRANT OPTION are NOT auto-revoked. Downstream grants persist until explicitly revoked. ## Access Control Requires the `ManageGrants` privilege on the location. ## Compatibility DeltaForge extension.

Parameters

NameTypeDescription
privilegesSpecifies one or more privileges as a comma-separated list.
location_nameSpecifies the external location.
principalSpecifies the principal to revoke from.

Examples

REVOKE READ ON EXTERNAL LOCATION raw_data FROM ROLE analyst;
REVOKE READ, CREATE_EXTERNAL_LOCATION ON EXTERNAL LOCATION raw_data FROM ROLE pipeline_lead;

Pitfalls

See Also

Open in interactive docs →   DeltaForge home →