REVOKE <PRIVILEGE>

statementnot supportedAccess control (grants, roles)

docs.snowflake.com ↗

Revokes access privileges for databases and other supported database objects (schemas, tables, views, and models) from a share. Revoking privileges on these objects effectively removes the objects from the share, disabling access to the objects granted via the database role in all consumer accounts that have created a database from the share. For more details, see About Secure Data Sharing and Create and configure shares.

Syntax

REVOKE objectPrivilege ON
     {  DATABASE <name>
      | SCHEMA <name>
      | MODEL <name>
      | SEMANTIC VIEW <name>
      | { TABLE <name> | ALL TABLES IN SCHEMA <schema_name> }
      | { EXTERNAL TABLE <name> | ALL EXTERNAL TABLES IN SCHEMA <schema_name> }
      | { ICEBERG TABLE <name> | ALL ICEBERG TABLES IN SCHEMA <schema_name> }
      | { DYNAMIC TABLE <name> | ALL DYNAMIC TABLES IN SCHEMA <schema_name> }
      | { VIEW <name> | ALL VIEWS IN SCHEMA <schema_name> }  }
  FROM SHARE <share_name>

Where

objectPrivilege ::=
-- For DATABASE
   REFERENCE_USAGE [ , ... ]
-- For DATABASE, FUNCTION, MODEL, or SCHEMA
   USAGE [ , ... ]
-- For MODEL or TAG
   READ
-- For SEMANTIC VIEW
   { REFERENCES | SELECT } [ , ... ]
-- For TABLE
   EVOLVE SCHEMA [ , ... ]
-- For EXTERNAL TABLE, ICEBERG TABLE, TABLE, or VIEW
   SELECT [ , ... ]

Parameters

NameRequiredDescription
nameSpecifies the identifier for the object (database, schema, table, view, or model) for which the specified privilege is revoked.
schema_nameSpecifies the identifier for the schema for which the specified privilege is revoked for all tables or views.
share_nameSpecifies the identifier for the share for which the specified privilege is revoked.

Usage notes

See also

Referenced by