---
title: Manage data recipients for OpenSharing
description: "Manage OpenSharing recipients in Databricks: grant share access, update properties, configure materialization caching, and restrict access with IP lists."
canonical_url: https://docs.databricks.com/aws/en/opensharing/manage-recipients
---

# Manage data recipients for OpenSharing

As a data provider, manage OpenSharing recipients in Databricks to grant share access, update properties, and control materialization caching. A *recipient* is the named object that represents the identity of a user or group with whom you share data.

If you are a data recipient looking to manage a provider object you imported from a credential file, see [Manage OpenSharing providers for data recipients](https://docs.databricks.com/aws/en/opensharing/manage-provider.md) instead.

To create a recipient, see [Create data recipients for OpenSharing (Databricks-to-Databricks sharing)](https://docs.databricks.com/aws/en/opensharing/create-recipient.md), [Create a recipient object for non-Databricks users using bearer tokens (Databricks-to-Open sharing)](https://docs.databricks.com/aws/en/opensharing/create-recipient-token.md), or [Enable Open ID Connect (OIDC) federation for OpenSharing recipients](https://docs.databricks.com/aws/en/opensharing/create-recipient-oidc-fed.md). To manage shares, see [Manage shares for OpenSharing](https://docs.databricks.com/aws/en/opensharing/manage-share.md).

## Grant the recipient access to a share

After you've created the recipient and [created shares](https://docs.databricks.com/aws/en/opensharing/create-share.md), you can grant the recipient access to those shares.

To grant share access to recipients, you can use Catalog Explorer, the Databricks Unity Catalog CLI, or the `GRANT ON SHARE` SQL command in a Databricks notebook or the Databricks SQL query editor.

**Permissions required**: One of the following:

* Metastore admin.
* Delegated permissions or ownership on both the share and the recipient objects ((`USE SHARE` + `SET SHARE PERMISSION`) or share owner) AND (`USE RECIPIENT` or recipient owner).

For instructions, see [Manage access to OpenSharing data shares (for providers)](https://docs.databricks.com/aws/en/opensharing/grant-access.md).

## <a id="list-recipients" />View recipients

To view a list of recipients, you can use Catalog Explorer, the Databricks Unity Catalog CLI, or the `SHOW RECIPIENTS` SQL command in a Databricks notebook or the Databricks SQL query editor.

**Permissions required**: You must have the `USE RECIPIENT` privilege to view all recipients in the metastore. Other users have access only to the recipients that they own.

### Catalog Explorer

1. In your Databricks workspace, click ![Data icon.](https://docs.databricks.com/aws/en/images/product-icons/DataIcon.svg) **Catalog**.

2. At the top of the **Catalog** pane, click the ![Gear icon.](https://docs.databricks.com/aws/en/images/product-icons/GearIcon.svg) gear icon and select **OpenSharing**.

   Alternatively, in the upper-right corner, click **Share > OpenSharing**.

3. On the **Shared by me** tab, click **Recipients**.

### SQL

Run the following command in a notebook or the Databricks SQL query editor. Optionally, replace `<pattern>` with a [`LIKE` predicate](https://docs.databricks.com/aws/en/sql/language-manual/functions/like.md).

```sql
SHOW RECIPIENTS [LIKE <pattern>];
```

### CLI

Run the following command using the [Databricks CLI](https://docs.databricks.com/aws/en/dev-tools/cli/index.md).

```bash
databricks recipients list
```

## <a id="recipient-details" />View recipient details

To view details about a recipient, you can use Catalog Explorer, the Databricks Unity Catalog CLI, or the `DESCRIBE RECIPIENT` SQL command in a Databricks notebook or the Databricks SQL query editor.

**Permissions required**: Metastore admin, user with the `USE RECIPIENT` privilege, or the recipient object owner.

Details include:

* The recipient's creator, creation timestamp, comments, and authentication type (`DATABRICKS`, `TOKEN`, `EMAIL`, `OAUTH_CLIENT_CREDENTIALS`, or `OIDC_FEDERATION`). The `EMAIL` type wraps a `DATABRICKS` or `TOKEN` connection; see [Manage email recipients](https://docs.databricks.com/aws/en/opensharing/manage-recipients.md#manage-email-recipients).
* If the recipient uses Databricks-to-Open sharing with bearer tokens: token lifetime, activation link, activation status (whether the credential has been downloaded), and IP access lists, if assigned.
* If the recipient uses Databricks-to-Open sharing with OIDC federation: recipient endpoint, MTLS endpoint, federation policies, and IP access lists, if assigned.
* If the recipient uses Databricks-to-Databricks sharing: the cloud, region, and metastore ID of the recipient's Unity Catalog metastore, as well as activation status.
* Recipient properties, including custom properties. See [Manage recipient properties](https://docs.databricks.com/aws/en/opensharing/manage-recipients.md#properties).

### Catalog Explorer

1. In your Databricks workspace, click ![Data icon.](https://docs.databricks.com/aws/en/images/product-icons/DataIcon.svg) **Catalog**.

2. At the top of the **Catalog** pane, click the ![Gear icon.](https://docs.databricks.com/aws/en/images/product-icons/GearIcon.svg) gear icon and select **OpenSharing**.

   Alternatively, in the upper-right corner, click **Share > OpenSharing**.

3. On the **Shared by me** tab, click **Recipients**, and select the recipient.

### SQL

Run the following command in a notebook or the Databricks SQL query editor.

```sql
DESCRIBE RECIPIENT <recipient-name>;
```

### CLI

Run the following command using the [Databricks CLI](https://docs.databricks.com/aws/en/dev-tools/cli/index.md).

```bash
databricks recipients get <recipient-name>
```

## <a id="list-shares" />View a recipient's share permissions

To view the list of shares that a recipient has been granted access to, you can use Catalog Explorer, the Databricks CLI, or the `SHOW GRANTS TO RECIPIENT` SQL command in a Databricks notebook or the Databricks SQL query editor.

**Permissions required**: Metastore admin, user with the `USE RECIPIENT` privilege, or the recipient object owner.

### Catalog Explorer

1. In your Databricks workspace, click ![Data icon.](https://docs.databricks.com/aws/en/images/product-icons/DataIcon.svg) **Catalog**.

2. At the top of the **Catalog** pane, click the ![Gear icon.](https://docs.databricks.com/aws/en/images/product-icons/GearIcon.svg) gear icon and select **OpenSharing**.

   Alternatively, in the upper-right corner, click **Share > OpenSharing**.

3. On the **Shared by me** tab, click **Recipients**, and select the recipient.

4. Go to the **Shares** tab to view the list of shares shared with the recipient.

### SQL

Run the following command in a notebook or the Databricks SQL query editor.

```sql
SHOW GRANTS TO RECIPIENT <recipient-name>;
```

### CLI

Run the following command using the [Databricks CLI](https://docs.databricks.com/aws/en/dev-tools/cli/index.md).

```bash
databricks recipients share-permissions <recipient-name>
```

## <a id="update" />Update a recipient

To update a recipient, you can use Catalog Explorer, the Databricks Unity Catalog CLI, or the `ALTER RECIPIENT` SQL command in a Databricks notebook or the Databricks SQL query editor.

Properties you can update include recipient name, owner, comment, and custom properties.

**Permissions required**: You must be a metastore admin or owner of the recipient object to update the owner. You must have the `CREATE RECIPIENT` privilege *and* be the owner to update the name. You must be the owner to update the comment or custom properties.

### Catalog Explorer

1. In your Databricks workspace, click ![Data icon.](https://docs.databricks.com/aws/en/images/product-icons/DataIcon.svg) **Catalog**.

2. At the top of the **Catalog** pane, click the ![Gear icon.](https://docs.databricks.com/aws/en/images/product-icons/GearIcon.svg) gear icon and select **OpenSharing**.

   Alternatively, in the upper-right corner, click **Share > OpenSharing**.

3. On the **Shared by me** tab, click **Recipients**, and select the recipient.

4. On the recipient details page:
   * Update the owner.

   * Edit or add a comment.

   * Rename the recipient.

     Click the ![Kebab menu icon.](https://docs.databricks.com/aws/en/images/product-icons/OverflowIcon.svg) kebab menu and select **Rename**.

   * Edit, remove, or add custom **Recipient properties**.

     Click the ![Edit icon](https://docs.databricks.com/aws/en/images/icons/pencil-edit-icon.png) edit icon next to **Recipient properties**. Then add a property name (**Key**) and **Value**. For details, see [Manage recipient properties](https://docs.databricks.com/aws/en/opensharing/manage-recipients.md#properties).

   * Token-authenticated recipients only:
     * View and copy the **Authentication link**. See [Send the recipient their connection information](https://docs.databricks.com/aws/en/opensharing/create-recipient-token.md#get-activation-link)
     * Under **Token Management**, rotate or update the bearer token. See [Manage recipient tokens](https://docs.databricks.com/aws/en/opensharing/create-recipient-token.md#rotate-credential).

   * OIDC federated recipients only:
     * Under **OIDC federation policies**, click **Add policies**. See [Enable Open ID Connect (OIDC) federation for OpenSharing recipients](https://docs.databricks.com/aws/en/opensharing/create-recipient-oidc-fed.md).
     * View and copy **Recipient endpoint** and **Recipient MTLS endpoint**.

### SQL

Run one or more of the following commands in a notebook or the Databricks SQL query editor.

```sql
ALTER RECIPIENT <recipient-name> RENAME TO <new-recipient-name>;

ALTER RECIPIENT <recipient-name> OWNER TO <new-owner>;

COMMENT ON RECIPIENT <recipient-name> IS "<new-comment>";

ALTER RECIPIENT <recipient-name> SET PROPERTIES ( <property-key>  =  property_value [, ...] )

ALTER RECIPIENT <recipient-name> UNSET PROPERTIES ( <property-key> [, ...] )
```

For more information about properties, see [Manage recipient properties](https://docs.databricks.com/aws/en/opensharing/manage-recipients.md#properties).

### CLI

Create a JSON file that includes an update to the recipient name, comment, owner, IP access list, or custom properties.

```json
{
  "name": "new-recipient-name",
  "owner": "someone-else@example.com",
  "comment": "something new",
  "ip_access_list": {
    "allowed_ip_addresses": ["8.8.8.8", "8.8.8.4/10"]
  },
  "property": {
    "country": "us",
    "id": "001"
  }
}
```

Then run the following command using the [Databricks CLI](https://docs.databricks.com/aws/en/dev-tools/cli/index.md). Replace `<recipient-name>` with the current recipient name and replace `update-recipient-settings.json` with the filename of the JSON file.

```bash
databricks recipients update --json-file update-recipient-settings.json
```

For more information about properties, see [Manage recipient properties](https://docs.databricks.com/aws/en/opensharing/manage-recipients.md#properties).

## (Optional) Restrict recipient access using access lists

You can limit recipient access to a restricted set of IP addresses for Databricks-to-Open sharing recipients. See [Restrict OpenSharing recipient access using IP access lists (Databricks-to-Open sharing)](https://docs.databricks.com/aws/en/opensharing/access-list.md).

## <a id="manage-email-recipients" />Manage email recipients

> [!NOTE]
> **Beta**
>
> This feature is in [Beta](https://docs.databricks.com/aws/en/release-notes/release-types.md). To use it, an account admin on the provider's account must enable **OpenSharing by email** from the account console **Previews** page. See [ Manage account-level previews](https://docs.databricks.com/aws/en/admin/workspace-settings/manage-previews.md#account).

When you invite a recipient by email, OpenSharing creates a parent recipient with the authentication type `EMAIL`. The parent's underlying connection is represented by one or more child recipients:

* A `TOKEN` child for open sharing.
* A `DATABRICKS` child for Databricks-to-Databricks sharing.

You manage the parent recipient. You can't edit a child recipient directly, and changes made to the parent propagate to its children. However, you can delete an individual child recipient.

After the recipient is created, you see the connection status of each child recipient:

* Pending: The `TOKEN` recipient received the email but has not downloaded the credential file.
* Activated: The `TOKEN` or `DATABRICKS` recipient has accessed the share.
* Expired: The `TOKEN` recipient's token has expired. Rotate the token to ensure the recipient can still access shared data.

To refresh or rotate a `TOKEN` recipient's token, see [Manage recipient tokens](https://docs.databricks.com/aws/en/opensharing/create-recipient-token.md#rotate-credential).

To resend an invitation for a share the recipient already has, delete the recipient, create it again, and grant access to the share. See [email sharing limitations](https://docs.databricks.com/aws/en/opensharing/index.md#email-sharing-limitations) for the full list.

## <a id="properties" />Manage recipient properties

Recipient objects include predefined properties that you can use to refine data sharing access. For example, you can use them to do the following:

* Share different table partitions with different recipients, enabling you to use the same shares with multiple recipients while maintaining data boundaries between them.
* Share dynamic views that limit recipient access to table data at the row or column level based on recipient properties.

You can also create custom properties.

For open sharing recipients, set `materialization_ttl_seconds` to configure how long materialized results are cached for that recipient. See [Configure a recipient materialization TTL](https://docs.databricks.com/aws/en/opensharing/manage-recipients.md#recipient-materialization-ttl).

The predefined properties start with `databricks.` and include the following:

* `databricks.accountId`: The Databricks account that a data recipient belongs to (Databricks-to-Databricks sharing only).
* `databricks.metastoreId`: The Unity Catalog metastore that a data recipient belongs to (Databricks-to-Databricks sharing only).
* `databricks.name`: The name of the data recipient.

Custom properties that might be of value could include, for example, `country`. For example, if you attach the custom property `'country' = 'us'` to a recipient, you can partition table data by country and share only rows that have US data with the recipients that have that property assigned. You can also share a dynamic view that restricts row or column access based on recipient properties. For more detailed examples, see [Use recipient properties to do partition filtering](https://docs.databricks.com/aws/en/opensharing/create-share.md#properties) and [Add dynamic views to a share to filter rows and columns](https://docs.databricks.com/aws/en/opensharing/create-share.md#dynamic-views).

### Requirements

You must use a SQL warehouse or compute running Databricks Runtime 12.2 or above.

### Add properties when you create or update a recipient

You can add properties when you create a recipient or update them for an existing recipient. You can use Catalog Explorer, the Databricks Unity Catalog CLI, or SQL commands in a Databricks notebook or the Databricks SQL query editor.

**Permissions required**: Metastore admin or user with the `CREATE RECIPIENT` privilege for the Unity Catalog metastore.

#### Catalog Explorer

When you [create](https://docs.databricks.com/aws/en/opensharing/create-recipient.md#create-recipient-db-to-db) or [update](https://docs.databricks.com/aws/en/opensharing/manage-recipients.md#update) a recipient using Catalog Explorer, add or update custom properties by doing the following:

1. Go to the Recipient details page.

   If you are creating a new recipient, you land on this page after you click **Create**. If you are updating an existing recipient, go to this page by clicking the ![Gear icon.](https://docs.databricks.com/aws/en/images/product-icons/GearIcon.svg) **gear icon > OpenSharing > Shared by me > Recipients** and selecting the recipient.

2. On the lower‑right side of the page, under **Recipient properties**, click the ![Pencil icon.](https://docs.databricks.com/aws/en/images/product-icons/PencilIcon.svg) pencil next to **databricks.metastoreID** for a Databricks recipient or next to **databricks.name** for an open recipient.

3. Enter a property name (**Key**) and **Value**.

   For example, if you want to filter shared data by country and share only US data with this recipient, you can create a key named “country” with a value of “US.”

4. Click **Save**.

#### SQL

To add a custom property when you create a recipient, run the following command in a notebook or the Databricks SQL query editor:

```sql
CREATE RECIPIENT [IF NOT EXISTS] <recipient-name>
[USING ID '<sharing-identifier>'] /* Skip this if you are using open sharing */
[COMMENT "<comment>"]
PROPERTIES ( '<property-key>' = '<property-value>' [, ...] );
```

`<property-key>` can be a string literal or identifier. `<property-value>` must be a string literal.

For example:

```sql
CREATE RECIPIENT acme PROPERTIES ('country' = 'us', 'partner_id' = '001');
```

To add, edit, or delete custom properties for an existing recipient, run one of the following:

```sql
ALTER RECIPIENT <recipient-name> SET PROPERTIES ( '<property-key>' = '<property-value>' [, ...] );

ALTER RECIPIENT <recipient-name> UNSET PROPERTIES ( '<property-key>' );
```

#### CLI

To add custom properties when you create a recipient, run the following command using the [Databricks CLI](https://docs.databricks.com/aws/en/dev-tools/cli/index.md). Replace the placeholder values:

* `<recipient-name>`: The name of the recipient.
* `<property-key>` can be a string literal or identifier.
* `<property-value>` must be a string literal.

```bash
databricks recipients create \
--json='{
  "name": "<recipient-name>",
  "properties_kvpairs": {
    "properties": {
      "<property-key>": "<property-value>",
    }
  }
}'
```

For example:

```bash
databricks recipients create \
--json='{
  "name": "<recipient-name>",
  "properties_kvpairs": {
    "properties": {
      "country": "us",
      "partner_id":"001"
    }
  }
}'
```

To add or edit custom properties for an existing recipient, use `update` instead of `create`:

```bash
databricks recipients update \
--json='{
  "name": "<recipient-name>",
  "properties_kvpairs": {
    "properties": {
      "country": "us",
      "partner_id":"001"
    }
  }
}'
```

### View recipient properties

To view recipient properties, follow the instructions in [View recipient details](https://docs.databricks.com/aws/en/opensharing/manage-recipients.md#recipient-details).

### <a id="recipient-materialization-ttl" />Configure a recipient materialization TTL

As the owner of an open sharing recipient, set the `materialization_ttl_seconds` recipient property to control how long materialized results are cached for that recipient. Choose a shorter TTL for fresher results or a longer TTL to reduce repeated materialization.

The recipient TTL overrides the [metastore TTL](https://docs.databricks.com/aws/en/opensharing/set-up.md#data-ttl). If the property is absent, the existing metastore and asset default settings apply.

Set the TTL to an integer number of seconds. The minimum is `0`, which disables cache reuse. The maximum is the number of whole seconds remaining until December 31, 2099, at 18:59:59 UTC, calculated when a materialization is created. Databricks rejects malformed, negative, or out of range values.

Use the [recipient properties editor](https://docs.databricks.com/aws/en/opensharing/manage-recipients.md#properties), or run the following SQL to set a one hour TTL. Replace `<recipient-name>` with the name of the recipient:

```sql
ALTER RECIPIENT <recipient-name>
SET PROPERTIES ('materialization_ttl_seconds' = '3600');
```

To restore the existing metastore and default TTL behavior, remove the property:

```sql
ALTER RECIPIENT <recipient-name>
UNSET PROPERTIES ('materialization_ttl_seconds');
```

Changes apply to new materializations. Existing cached results keep their original expiration time.

## <a id="delete-recipient" />Delete a recipient

To delete a recipient, you can use Catalog Explorer, the Databricks Unity Catalog CLI, or the `DROP RECIPIENT` SQL command in a Databricks notebook or the Databricks SQL query editor. You must be the recipient object owner to delete the recipient.

When you delete a recipient, the users represented by the recipient can no longer access the shared data. Tokens that recipients use in a Databricks-to-Open sharing scenario are invalidated.

**Permissions required**: Recipient object owner.

### Catalog Explorer

1. In your Databricks workspace, click ![Data icon.](https://docs.databricks.com/aws/en/images/product-icons/DataIcon.svg) **Catalog**.

2. At the top of the **Catalog** pane, click the ![Gear icon.](https://docs.databricks.com/aws/en/images/product-icons/GearIcon.svg) gear icon and select **OpenSharing**.

   Alternatively, in the upper-right corner, click **Share > OpenSharing**.

3. On the **Shared by me** tab, click **Recipients**, and select the recipient.

4. On the **Recipients** tab, find and select the recipient.

5. Click the ![Kebab menu icon.](https://docs.databricks.com/aws/en/images/product-icons/OverflowIcon.svg) kebab menu and select **Delete**.

6. On the confirmation dialog, click **Delete**.

### SQL

Run the following command in a notebook or the Databricks SQL query editor.

```sql
DROP RECIPIENT [IF EXISTS] <recipient-name>;
```

### CLI

Run the following command using the [Databricks CLI](https://docs.databricks.com/aws/en/dev-tools/cli/index.md).

```bash
databricks recipients delete <recipient-name>
```
