LogoLogo
Start Trial
  • Overview
    • What is DeltaStream?
    • Core Concepts
      • Access Control
      • Region
      • SQL
      • Store
      • Database
      • Query
      • Visualizing Data Lineage
      • Function
  • Getting Started
    • Free Trial Quick Start
    • Starting with the Web App
    • Starting with the CLI
  • Tutorials
    • Managing Users and User Roles
      • Inviting Users to an Organization
      • Administering Users in your Organization
      • Using the CLI to Manage User Roles
      • Example: Setting Up Custom Roles for Production and Stage
    • Creating Stores for Streaming Data
    • Using Multiple Stores in Queries
    • Creating Relations to Structure Raw Data
    • Namespacing with Database and Schema
    • Creating and Querying Materialized Views
    • Creating a Function
    • Securing Your Connections to Data Stores
      • Introducing DeltaStream Private Links
      • Creating an AWS Private Link from DeltaStream to your Confluent Kafka Dedicated Cluster
      • Enabling Private Link Connectivity to Confluent Enterprise Cluster and Schema Registry
      • Creating a Private Link from DeltaStream to Amazon MSK
      • Creating a Private Link for RDS Databases
      • Deleting a Private Link
    • Integrations
      • Connecting to Confluent Cloud
      • Databricks
      • PostgreSQL
      • Snowflake
      • WarpStream
    • Serialization
      • Working with ProtoBuf Serialized Data and DeltaStream Descriptors
      • Working with Avro Serialized Data and Schema Registries
      • Configuring Deserialization Error Handling
  • Reference
    • Enterprise Security Integrations
      • Okta SAML Integration
      • Okta SCIM Integration
    • Metrics
      • Prometheus Integration
      • Built-In Metrics
      • Custom Metrics in Functions
    • SQL Syntax
      • Data Formats (Serialization)
        • Serializing with JSON
        • Serializing with Primitive Data Types
        • Serializing with Protobuf
      • Data Types
      • Identifiers and Keywords
      • Command
        • ACCEPT INVITATION
        • CAN I
        • COPY DESCRIPTOR_SOURCE
        • COPY FUNCTION_SOURCE
        • DESCRIBE ENTITY
        • DESCRIBE QUERY
        • DESCRIBE QUERY METRICS
        • DESCRIBE QUERY EVENTS
        • DESCRIBE QUERY STATE
        • DESCRIBE RELATION
        • DESCRIBE RELATION COLUMNS
        • DESCRIBE ROLE
        • DESCRIBE SECURITY INTEGRATION
        • DESCRIBE <statement>
        • DESCRIBE STORE
        • DESCRIBE USER
        • GENERATE COLUMNS
        • GENERATE TEMPLATE
        • GRANT OWNERSHIP
        • GRANT PRIVILEGES
        • GRANT ROLE
        • INVITE USER
        • LIST API_TOKENS
        • LIST DATABASES
        • LIST DESCRIPTORS
        • LIST DESCRIPTOR_SOURCES
        • LIST ENTITIES
        • LIST FUNCTIONS
        • LIST FUNCTION_SOURCES
        • LIST INVITATIONS
        • LIST METRICS INTEGRATIONS
        • LIST ORGANIZATIONS
        • LIST QUERIES
        • LIST REGIONS
        • LIST RELATIONS
        • LIST ROLES
        • LIST SCHEMAS
        • LIST SCHEMA_REGISTRIES
        • LIST SECRETS
        • LIST SECURITY INTEGRATIONS
        • LIST STORES
        • LIST USERS
        • PRINT ENTITY
        • REJECT INVITATION
        • REVOKE INVITATION
        • REVOKE PRIVILEGES
        • REVOKE ROLE
        • SET DEFAULT
        • USE
      • DDL
        • ALTER API_TOKEN
        • ALTER SECURITY INTEGRATION
        • CREATE API_TOKEN
        • CREATE CHANGELOG
        • CREATE DATABASE
        • CREATE DESCRIPTOR_SOURCE
        • CREATE ENTITY
        • CREATE FUNCTION_SOURCE
        • CREATE FUNCTION
        • CREATE INDEX
        • CREATE METRICS INTEGRATION
        • CREATE ORGANIZATION
        • CREATE ROLE
        • CREATE SCHEMA_REGISTRY
        • CREATE SCHEMA
        • CREATE SECRET
        • CREATE SECURITY INTEGRATION
        • CREATE STORE
        • CREATE STREAM
        • CREATE TABLE
        • DROP API_TOKEN
        • DROP CHANGELOG
        • DROP DATABASE
        • DROP DESCRIPTOR_SOURCE
        • DROP ENTITY
        • DROP FUNCTION_SOURCE
        • DROP FUNCTION
        • DROP METRICS INTEGRATION
        • DROP RELATION
        • DROP ROLE
        • DROP SCHEMA
        • DROP SCHEMA_REGISTRY
        • DROP SECRET
        • DROP SECURITY INTEGRATION
        • DROP STORE
        • DROP STREAM
        • DROP USER
        • UPDATE ENTITY
        • UPDATE SCHEMA_REGISTRY
        • UPDATE SECRET
        • UPDATE STORE
      • Query
        • APPLICATION
        • Change Data Capture (CDC)
        • CREATE CHANGELOG AS SELECT
        • CREATE STREAM AS SELECT
        • CREATE TABLE AS SELECT
        • Function
          • Built-in Functions
          • Row Metadata Functions
        • INSERT INTO
        • Materialized View
          • CREATE MATERIALIZED VIEW AS
          • SELECT (FROM MATERIALIZED VIEW)
        • Query Name and Version
        • Resume Query
        • RESTART QUERY
        • SELECT
          • FROM
          • JOIN
          • MATCH_RECOGNIZE
          • WITH (Common Table Expression)
        • TERMINATE QUERY
      • Sandbox
        • START SANDBOX
        • DESCRIBE SANDBOX
        • STOP SANDBOX
      • Row Key Definition
    • Rest API
Powered by GitBook
On this page
  • Revoke Organization Privileges
  • Syntax
  • Description
  • Arguments
  • Revoke Database Privileges
  • Syntax
  • Description
  • Arguments
  • Revoke Database Schema Privileges
  • Syntax
  • Description
  • Arguments
  • Revoke Store Privileges
  • Syntax
  • Description
  • Arguments
  • Revoke Descriptor Source Privileges
  • Syntax
  • Description
  • Arguments
  • Revoke Relation Privileges
  • Syntax
  • Description
  • Arguments
  • Revoke Function Source Privileges
  • Syntax
  • Description
  • Arguments
  • Revoke Function Privileges
  • Syntax
  • Description
  • Arguments
  1. Reference
  2. SQL Syntax
  3. Command

REVOKE PRIVILEGES

PreviousREVOKE INVITATIONNextREVOKE ROLE

Last updated 5 months ago

Revoke Organization Privileges

Syntax

REVOKE [ CREATE_DATABASE 
       | CREATE_STORE 
       | CREATE_SCHEMA_REGISTRY
       | CREATE_DESCRIPTOR_SOURCE 
       | CREATE_FUNCTION_SOURCE | CREATE_FUNCTION
       | CREATE_QUERY
       | CREATE_CONNECTOR
       | ALL PRIVILEGES
       ]
FROM ROLE role_name [, ...];

Description

Revokes from one or more roles.

The current role requires one of the following privileges:

  • Ownership of organization

  • MANAGE_GRANTS privilege on organization

  • Privilege granted to the current role WITH GRANT OPTION.

Arguments

CREATE_DATABASE

CREATE_STORE

CREATE_SCHEMA_REGISTRY

CREATE_DESCRIPTOR_SOURCE

CREATE_FUNCTION_SOURCE

CREATE_FUNCTION

CREATE_QUERY

MANAGE_MEMBERS

MANAGE_GRANTS

Disallow role from managing privilege grants within the organization.

ALL PRIVILEGES

Revoke all privileges listed above from the role.

role_name [, ...]

Revoke Database Privileges

Syntax

REVOKE [ USAGE 
       | CREATE
       | ALL PRIVILEGES
       ]
ON DATABASE database_name
FROM ROLE role_name [, ...];

Description

Arguments

USAGE

Disallow role from listing or using the database.

CREATE

Disallow role from creating schemas under the database.

ALL PRIVILEGES

Revoke all the privileges listed above from the role.

database_name

The name of the database on which to revoke privileges.

role_name [, ...]

Revoke Database Schema Privileges

Syntax

REVOKE [ USAGE 
       | CREATE
       | ALL PRIVILEGES
       ]
ON SCHEMA schema_name
FROM ROLE role_name [, ...];

Description

Revokes schema privileges from one or more roles.

Arguments

USAGE

Disallow role from listing and using the schema.

CREATE

Disallow role from creating relations under the schema.

ALL PRIVILEGES

Revoke all the privileges listed above from the role.

schema_name

The qualified name of the schema from which to revoke privileges. This name can include a specific database name to form a fully-qualified name in the format of <database_name>.<schema_name>; otherwise the system uses the current database name in the session.

role_name [, ...]

Revoke Store Privileges

Syntax

REVOKE [ USAGE 
       | ALL PRIVILEGES
       ]
ON STORE store_name
FROM ROLE role_name [, ...];

Description

Revokes store privileges from one or more roles.

Arguments

USAGE

Disallow role from listing and using the store.

store_name

The name of the store from which to revoke privileges.

role_name [, ...]

Revoke Descriptor Source Privileges

Syntax

REVOKE [ USAGE 
       | ALL PRIVILEGES
       ]
ON DESCRIPTOR_SOURCE descriptor_source_name
FROM ROLE role_name [, ...];

Description

Arguments

USAGE

Disallow role from listing and using the descriptor source.

descriptor_source_name

The name of the descriptor source on which to revoke privileges.

role_name [, ...]

Revoke Relation Privileges

Syntax

REVOKE [ SELECT
       | INSERT
       | ALL PRIVILEGES
       ]
ON RELATION relation_name
FROM ROLE role_name [, ...];

Description

Arguments

SELECT

INSERT

relation_name

role_name [, ...]

Revoke Function Source Privileges

Syntax

REVOKE [ USAGE 
       | ALL PRIVILEGES
       ]
ON FUNCTION_SOURCE function_source_name
FROM ROLE role_name [, ...]
[WITH GRANT OPTION];

Description

Arguments

USAGE

Disallow role from listing and using the function source.

descriptor_source_name

The name of the function source on which to revoke privileges.

role_name [, ...]

Revoke Function Privileges

Syntax

REVOKE [ USAGE 
       | ALL PRIVILEGES
       ]
ON FUNCTION function_identifier
FROM ROLE role_name [, ...]
[WITH GRANT OPTION];

Description

Arguments

USAGE

Disallow role from listing and using the function.

descriptor_source_name

The name of the function on which to revoke privileges.

role_name [, ...]

Disallow role from creating under the organization.

Disallow role from creating under the organization.

Disallow role from creating under the organization.

Disallow role from uploading to the organization.

Disallow role from uploading to the organization.

Disallow role from creating under the organization.

Disallow role from launching any under the organization.

Disallow role from managing , invitations, and users.

One or more from which to revoke the privileges.

Revoke privileges from one or more roles.

One or more from which to revoke the privileges.

One or more from which to revoke the privileges.

One or more from whichto revoke the privileges.

Revoke privileges from one or more roles.

One or more from which to revoke the privileges.

Revokes privileges from one or more roles.

Disallow role from creating a and using the relation as a source.

Disallow role from creating a and using the relation as a sink.

The name of the relation from which to revoke privileges. Optionally, provide and name for a fully-qualified relation name in the format of [<database_name>.<schema_name>.]<relation_name> — for example, db1.public.pageviews. Otherwise, the system uses the current database and schema to identify the relation.

One or more from which to revoke the privileges.

Revokes privileges from one or more roles.

One or more from which to revoke the privileges.

Revokes privileges from one or more roles.

One or more from which to revoke the privileges.

databases
stores
UDF and UDAF sources
UDFs or UDAFs
query
database
query
query
function source
function
organization
privileges
roles
roles
roles
roles
roles
roles
roles
roles
roles
database
schema registries
descriptor sources
descriptor source
relation
schema