---
title: Fine-grained DML privileges
description: Learn how the fine-grained DML privileges INSERT, UPDATE, and DELETE work in Unity Catalog, including the operations they cover and their Beta limitations.
canonical_url: https://docs.databricks.com/aws/en/data-governance/unity-catalog/access-control/fine-grained-dml-privileges
---

# Fine-grained DML privileges

> [!NOTE]
> **Beta**
>
> This feature is in [Beta](https://docs.databricks.com/aws/en/release-notes/release-types.md).

The fine-grained DML privileges `INSERT`, `UPDATE`, and `DELETE` are least-privilege alternatives to `MODIFY` on Unity Catalog tables. Grant them to principals that should change table data but not the table's schema or other metadata.

To exercise any of these privileges, a principal must also have the following privileges:

* `SELECT` on the table
* `USE SCHEMA` on the parent schema
* `USE CATALOG` on the parent catalog

Due to [privilege inheritance](https://docs.databricks.com/aws/en/data-governance/unity-catalog/access-control/permissions-concepts.md#inheritance), granting `INSERT`, `UPDATE`, or `DELETE` on a [catalog](https://docs.databricks.com/aws/en/data-governance/unity-catalog/securable-objects.md#catalog) or [schema](https://docs.databricks.com/aws/en/data-governance/unity-catalog/securable-objects.md#schema) automatically grants the privilege on all current and future tables they contain.

## <a id="compute-requirements" />Compute requirements

The fine-grained DML privileges require [Databricks Runtime](https://docs.databricks.com/aws/en/release-notes/runtime/index.md) 18.1 or above. They are supported on serverless compute, SQL warehouses, and classic compute in standard access mode. They are not supported on dedicated access mode compute. On unsupported compute, use `MODIFY` instead.

> [!NOTE]
>
> Databricks Runtime 18 is newer than Databricks Runtime 18.0, 18.1, and 18.2. Features that would previously have shipped as a later numbered version now ship as dated updates to Databricks Runtime 18 instead. For details, see [About unified release notes](https://docs.databricks.com/aws/en/release-notes/runtime/18.md#unified-format).

## <a id="relationship-to-modify" />Relationship to MODIFY

`MODIFY` is a composite privilege, and `INSERT`, `UPDATE`, and `DELETE` are its children. `MODIFY` grants full write access to a table's data, while each fine-grained DML privilege grants a subset of that access, so you can delegate specific data-change operations without granting the full `MODIFY` privilege.

Composite and child privileges are granted and revoked independently: granting `MODIFY` does not grant `INSERT`, `UPDATE`, or `DELETE`, and revoking `MODIFY` does not revoke any of them that were granted explicitly. For more details, see [Composite and child privileges](https://docs.databricks.com/aws/en/data-governance/unity-catalog/access-control/permissions-concepts.md#composite-child-privileges).

## <a id="operations" />Operations and required privileges

The `INSERT`, `UPDATE`, and `DELETE` privileges cover most DML operations. Other operations continue to require `MODIFY`.

The following table shows how common operations map to the fine-grained DML privileges. This is not a comprehensive list.

| Operation                                                                                                                                                        | Required privileges                                               |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- |
| `INSERT INTO`                                                                                                                                                    | `INSERT`                                                          |
| `INSERT OVERWRITE`                                                                                                                                               | `INSERT` and `DELETE`                                             |
| `INSERT REPLACE WHERE`/`USING`/`ON`                                                                                                                              | `INSERT` and `DELETE`                                             |
| Dynamic partition overwrite                                                                                                                                      | `INSERT` and `DELETE`                                             |
| `UPDATE`                                                                                                                                                         | `UPDATE`                                                          |
| `DELETE`                                                                                                                                                         | `DELETE`                                                          |
| `MERGE INTO`                                                                                                                                                     | `INSERT`, `UPDATE`, or `DELETE`, depending on the matched actions |
| `TRUNCATE`                                                                                                                                                       | `DELETE`                                                          |
| Operations that change schema or metadata, such as `INSERT OVERWRITE` with schema changes, `INSERT` with schema evolution, or `MERGE INTO` with schema evolution | `MODIFY`                                                          |
| `ALTER TABLE` operations, such as `ALTER COLUMN`, `ADD COLUMN`, `DROP COLUMN`, `SET TBLPROPERTIES`, and `UNSET TBLPROPERTIES`                                    | `MODIFY`                                                          |
| Other operations, such as `MSCK`, `OPTIMIZE`, and `VACUUM`                                                                                                       | `MODIFY`                                                          |

## <a id="limitations" />Limitations

* `INSERT`, `UPDATE`, and `DELETE` are only supported for table-based access. Path-based access to external tables requires using the `MODIFY` privilege.
