---
title: Privileges and securable objects in Unity Catalog
description: The privileges and securable objects of the Unity Catalog permission model, in Databricks SQL and Databricks Runtime.
canonical_url: https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-privileges
---

# Privileges and securable objects in Unity Catalog

**Applies to:** ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks SQL ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks Runtime ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Unity Catalog only

A privilege is a right granted to a [principal](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-principal.md) to operate on a [securable object](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-privileges.md#securable-objects) in the metastore. The privilege model and securable objects differ depending on whether you are using a Unity Catalog metastore or the legacy Hive metastore. This article describes the privilege model for Unity Catalog. If you are using the Hive metastore, see [Privileges and securable objects in the Hive metastore](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-privileges-hms.md).

For detailed information about how to manage privileges in Unity Catalog, see [Manage privileges in Unity Catalog](https://docs.databricks.com/aws/en/data-governance/unity-catalog/manage-privileges/index.md).

> [!NOTE]
>
> This article refers to the Unity Catalog privileges and inheritance model in Privilege Model version 1.0. If you created your Unity Catalog metastore during the public preview (before August 25, 2022), you might be on an earlier privilege model that doesn't support the current inheritance model. You can upgrade to Privilege Model version 1.0 to get privilege inheritance. See [Upgrade to privilege inheritance](https://docs.databricks.com/aws/en/archive/unity-catalog/upgrade-privilege-model.md).

## <a id="securable-objects" />Securable objects

A securable object is an object defined in the Unity Catalog metastore on which privileges can be granted to a [principal](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-principal.md). For a complete list of Unity Catalog securable objects and the privileges that can be granted on them, see [Unity Catalog privileges reference](https://docs.databricks.com/aws/en/data-governance/unity-catalog/access-control/privileges-reference.md).

To manage privileges on an object, you must be its owner or have the `MANAGE` privilege on the object, plus the required usage privileges on its parent containers.

### Syntax

```
securable_object
  { CATALOG [ catalog_name ] |
    CONNECTION connection_name |
    CLEAN ROOM clean_room_name |
    EXTERNAL LOCATION location_name |
    EXTERNAL METADATA metadata_name |
    FUNCTION function_name |
    METASTORE |
    PROCEDURE procedure_name |
    SCHEMA schema_name |
    SHARE share_name |
    [ STORAGE | SERVICE ] CREDENTIAL credential_name |
    [ TABLE ] table_name |
    MATERIALIZED VIEW view_name |
    VIEW view_name |
    VOLUME volume_name
  }
```

You can also specify `SERVER` instead of `CONNECTION` and `DATABASE` instead of `SCHEMA`.

### Parameters

* **`CATALOG` [catalog\_name](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-names.md#catalog-name)**

  Controls access to the entire data catalog.

- **`CLEAN ROOM` [clean\_room\_name](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-names.md#clean-room-name)**

  Controls access to a [clean room](https://docs.databricks.com/aws/en/clean-rooms/index.md).

* **`CONNECTION` [connection\_name](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-names.md#connection-name)**

  Controls access to the connection.

* **`EXTERNAL LOCATION` [location\_name](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-names.md#location-name)**

  Controls access to an [external location](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-external-locations.md).

* **`EXTERNAL METADATA` metadata\_name**

  Controls access to an [external metadata object](https://docs.databricks.com/aws/en/data-governance/unity-catalog/external-lineage.md) for use in a custom data lineage configuration.

* **`FUNCTION` [function\_name](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-names.md#function-name)**

  Controls access to a user-defined function or an [MLflow registered model](https://docs.databricks.com/aws/en/machine-learning/manage-model-lifecycle/index.md).

* **`MATERIALIZED VIEW` [view\_name](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-names.md#view-name)**

  Controls access to a materialized view.

* **`METASTORE`**

  Controls access to the Unity Catalog metastore attached to the workspace. When you manage privileges on a metastore, you do not include the metastore name in a SQL command. Unity Catalog will grant or revoke the privilege on the metastore attached to your workspace.

* **`PROCEDURE` [procedure\_name](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-names.md#procedure-name)**

  Controls access to a user-defined procedure.

  If the procedure cannot be found, Databricks raises an error.

* **`SCHEMA` [schema\_name](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-names.md#schema-name)**

  Controls access to a schema.

* **`[ STORAGE | SERVICE ] CREDENTIAL` [credential\_name](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-names.md#credential-name)**

  Controls access to a [credential](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-storage-credentials.md).

  The keywords `STORAGE` and `SERVICE` (![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks Runtime 15.4 and above) are optional.

* **`SHARE` [share\_name](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-names.md#share-name)**

  Controls access on a [share](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-sharing.md#shares) to a [recipient](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-sharing.md#recipients).

* **`TABLE` [table\_name](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-names.md#table-name)**

  Controls access to a managed or external table.
  If the table cannot be found Databricks raises a [TABLE\_OR\_VIEW\_NOT\_FOUND](https://docs.databricks.com/aws/en/error-messages/table-or-view-not-found-error-class.md) error.

* **`VIEW` [view\_name](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-names.md#view-name)**

  Controls access to a view.
  If the view cannot be found Databricks raises a [TABLE\_OR\_VIEW\_NOT\_FOUND](https://docs.databricks.com/aws/en/error-messages/table-or-view-not-found-error-class.md) error.

* **`VOLUME` [volume\_name](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-names.md#volume-name)**

  Controls access to a volume.
  If the volume cannot be found Databricks raises an error.

## <a id="privilege-types" />Privilege types

For a list of privilege types, see [Unity Catalog privileges reference](https://docs.databricks.com/aws/en/data-governance/unity-catalog/access-control/privileges-reference.md).

## Examples

```sql
-- Grant a privilege to the user alf@melmak.et
> GRANT SELECT ON TABLE t TO `alf@melmak.et`;

-- Revoke a privilege from the general public group.
> REVOKE USE SCHEMA ON SCHEMA some_schema FROM `account users`;

-- Grant metadata-only visibility on a schema to an auditing group.
> GRANT READ METADATA ON SCHEMA some_schema TO `auditors`;
```

## Related

* [GRANT](https://docs.databricks.com/aws/en/sql/language-manual/security-grant.md)
* [Principal](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-principal.md)
* [REVOKE](https://docs.databricks.com/aws/en/sql/language-manual/security-revoke.md)
