---
title: GRANT
description: Grant a privilege on a securable object to a principal with GRANT in Databricks SQL and Databricks Runtime.
canonical_url: https://docs.databricks.com/aws/en/sql/language-manual/security-grant
---

# GRANT

**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

Grants a [privilege](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-privileges.md#privilege-types) on an [securable object](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-privileges.md#securable-objects) to a [principal](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-principal.md).

> [!NOTE]
>
> Modifying access to the `samples` catalog is not supported. This catalog is available to all workspaces, but is read-only.

Use [GRANT ON SHARE](https://docs.databricks.com/aws/en/sql/language-manual/security-grant-share.md) to grant [recipients](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-sharing.md#recipients) access to [shares](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-sharing.md#shares).

## Syntax

```
GRANT privilege_types ON securable_object TO principal

privilege_types
  { ALL PRIVILEGES |
    privilege_type [, ...] }
```

## Parameters

* **privilege types**

  This identifies one or more privileges to be granted to the `principal`.

  * **`ALL PRIVILEGES`**

    Grant all privileges applicable to the `securable_object`. In Unity Catalog, `ALL PRIVILEGES` expands to all available privileges at the time permissions checks are made. It does not individually grant all of the applicable privileges at the time of the grant. To avoid accidental data exfiltration or privilege escalation, `ALL PRIVILEGES` does not include the `EXTERNAL USE SCHEMA`, `EXTERNAL USE LOCATION`, `MANAGE`, or `READ METADATA` privileges.

  * **[privilege type](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-privileges.md#privilege-types)**

    A specific privilege to be granted on the `securable_object` to the `principal`.

* **[securable\_object](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-privileges.md#securable-objects)**

  The object on which the privileges are granted to the principal.

* **[principal](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-principal.md)**

  A user, service principal, or group to which the privileges are granted. You must enclose users, service principals, and group names with [special characters](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-identifiers.md#delimited-identifiers) in backticks (`` ` ` ``).

## Examples

```sql
> GRANT CREATE ON SCHEMA my_schema TO `alf@melmak.et`;

> GRANT ALL PRIVILEGES ON TABLE forecasts TO finance;

> GRANT SELECT ON TABLE sample_data TO `alf@melmak.et`;

-- Granting a privilege to the service principal fab9e00e-ca35-11ec-9d64-0242ac120002
> GRANT SELECT ON TABLE t TO `fab9e00e-ca35-11ec-9d64-0242ac120002`;
```

## Related articles

* [GRANT ON SHARE](https://docs.databricks.com/aws/en/sql/language-manual/security-grant-share.md)
* [REPAIR PRIVILEGES](https://docs.databricks.com/aws/en/sql/language-manual/security-msck.md)
* [REVOKE](https://docs.databricks.com/aws/en/sql/language-manual/security-revoke.md)
* [SHOW GRANTS](https://docs.databricks.com/aws/en/sql/language-manual/security-show-grant.md)
