---
title: Manage OpenSharing providers for data recipients
description: Learn how data recipients can view data provider information and change the provider name in their Databricks user interfaces.
canonical_url: https://docs.databricks.com/aws/en/opensharing/manage-provider
---

# Manage OpenSharing providers for data recipients

This page describes how to use Unity Catalog to get information about data providers who are sharing data with you using OpenSharing. It also describes what a provider object is and when you might need to create a provider object in your Unity Catalog metastore, a task that most recipients should never need to do.

> [!IMPORTANT]
>
> Data recipients must have access to a Databricks workspace that is enabled for [Unity Catalog](https://docs.databricks.com/aws/en/data-governance/unity-catalog/index.md) to use the functionalities described. This page does not apply to recipients who do not have Unity Catalog-enabled workspaces.

## <a id="create-provider" />Do recipients need to create provider objects?

In OpenSharing on Databricks, the term “provider” can mean both the organization that is sharing data with you and a securable object in a recipient's Unity Catalog metastore that represents that organization. The existence of that securable object in a recipient's Unity Catalog metastore enables recipients to [manage their team's access to shared data using Unity Catalog](https://docs.databricks.com/aws/en/opensharing/read-data-databricks.md).

As a recipient with access to a Unity Catalog metastore, you typically do not need to create provider objects. This is because data should be shared with you using [Databricks-to-Databricks sharing](https://docs.databricks.com/aws/en/opensharing/index.md#d-to-d), and provider objects are created automatically in your Unity Catalog metastore.

> [!NOTE]
>
> If you are receiving data from a provider that is not sharing from a Unity Catalog-enabled Databricks workspace, you can use Catalog Explorer to import the provider's credential file. See [Import a provider and read shared data in Databricks](https://docs.databricks.com/aws/en/opensharing/read-data-open-databricks.md).

## Requirements

To manage providers in your Databricks workspace:

* Your workspace must be enabled for Unity Catalog.
* To view a provider, you must be a metastore admin, or a metastore admin must grant you the `USE PROVIDER` privilege.
* To create a provider, you must be a metastore admin, or a metastore admin must grant you the `CREATE PROVIDER` privilege.
* To update a provider, you must be the owner of the provider object and have the `CREATE PROVIDER` privilege. For details, see [Update a provider (rename, change owner, comment)](https://docs.databricks.com/aws/en/opensharing/manage-provider.md#update).

For this reason, if your workspace was created without a metastore admin, a Databricks account admin must grant a user or group the metastore admin role before you can work with provider objects in Databricks. See [Get started with Unity Catalog](https://docs.databricks.com/aws/en/data-governance/unity-catalog/get-started.md) and [Metastore admins](https://docs.databricks.com/aws/en/data-governance/unity-catalog/manage-privileges/admin-privileges.md#metastore-admins).

## <a id="view-providers" />View providers

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

**Permissions required**: You must have the `USE PROVIDER` privilege to view all providers in the metastore. Other users have access only to the providers 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 with me** tab, view all data shared with your organization. For each share, the following details are provided:
   * **Name:** The organization name, as specified by the provider.
   * **Authentication type:** The sharing method used by the provider.
   * **Owner:** The provider's name or email.
   * **Created at:** The date and time of when the share was created.
   * **Description:** The description of the share.

### 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 PROVIDERS [LIKE <pattern>];
```

For more details about `SHOW PROVIDERS`, see [SHOW PROVIDERS](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-syntax-aux-show-providers.md).

### CLI

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

```bash
databricks providers list
```

## <a id="view-provider-details" />View provider details

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

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

Details include:

* Shares shared by the provider (see [View shares that a provider has shared with you](https://docs.databricks.com/aws/en/opensharing/manage-provider.md#view-shares)).
* The provider's creator, creation timestamp, comments, and authentication type (`TOKEN` or `DATABRICKS`). `TOKEN` represents providers who have shared data with you using the Databricks-to-Open sharing protocol. `DATABRICKS` represents providers who have shared data with you using the Databricks-to-Databricks sharing protocol.
* If the provider uses Databricks-to-Databricks sharing: the cloud, region, and metastore ID of the provider's Unity Catalog metastore.
* If the provider uses Databricks-to-Open sharing: your recipient profile endpoint, which is the where the OpenSharing sharing server is hosted.

### 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 with me** tab, find and select the provider.

### SQL

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

```sql
DESC PROVIDER <provider-name>;
```

For more details about `DESC PROVIDER`, see [DESCRIBE PROVIDER](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-syntax-aux-describe-provider.md).

### CLI

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

```bash
databricks providers get <provider-name>
```

## <a id="view-shares" />View shares that a provider has shared with you

To view the shares that a provider has shared with you, you can use Catalog Explorer, the Databricks Unity Catalog CLI, or the `SHOW SHARES IN PROVIDER` SQL command in a Databricks notebook or the Databricks SQL query editor.

**Permissions required**: Metastore admin, user with the `USE PROVIDER` privilege, or the provider 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 with me** tab, find and select the provider.

### 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 SHARES IN PROVIDER [LIKE <pattern>];
```

For more details about `SHOW SHARES IN PROVIDER`, see [SHOW SHARES IN PROVIDER](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-syntax-aux-show-shares-in-provider.md).

### CLI

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

```bash
 databricks providers list-shares <provider-name>
```

## <a id="update" />Update a provider (rename, change owner, comment)

You can use Catalog Explorer, the Databricks Unity Catalog CLI, or the `ALTER PROVIDER` SQL command in a Databricks notebook or the Databricks SQL query editor to modify the provider object in your Unity Catalog metastore:

* Rename the provider to modify the way users see the provider object in their Databricks interfaces.
* Change the owner of the provider object.
* Add or modify comments.

**Permissions required**: You must be the owner of the provider object to update the owner. You must be a metastore admin (or user with the `CREATE PROVIDER` privilege) *and* provider owner to update the provider name. You must be the owner to update the comment. The initial owner is the metastore admin.

### 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 with me** tab, find and select the provider.

4. On the details page, update the owner, comment, or provider name.

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

### SQL

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

```sql
ALTER PROVIDER <provider-name> OWNER TO <new-owner>;

COMMENT ON PROVIDER <provider-name> IS "<comment>";

ALTER PROVIDER <provider-name> RENAME TO <new-provider-name>;
```

For more details about `ALTER PROVIDER`, see [ALTER PROVIDER](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-syntax-ddl-alter-provider.md).

### CLI

Run the following command using the [Databricks CLI](https://docs.databricks.com/aws/en/dev-tools/cli/index.md). Replace `<provider-name>` with the current provider name and `<new-provider-name>` with the new name.

```bash
databricks providers update <provider-name> /
--new-name <new-provider-name> /
--comment "<new comment>" /
--owner <new-owner-name>
```

## <a id="rotate-credentials" />Rotate credentials for open recipients

This section applies to provider objects with authentication type `TOKEN`, `OAUTH_CLIENT_CREDENTIALS`, or `OIDC_FEDERATION`. Databricks-to-Databricks providers (authentication type `DATABRICKS`) rotate automatically. If you access data without a provider object, for example, using the `delta-sharing` Python or Spark connector, apply the new credential file in your connector configuration. See [Read data shared with bearer tokens](https://docs.databricks.com/aws/en/opensharing/read-data-open.md).

A provider using the Databricks-to-Open sharing protocol may rotate your bearer token and send you a new credential file. When that happens, use the Databricks REST API to update the provider object. Don't drop and recreate the provider to apply a new credential. Catalogs bind to the provider's internal ID, not its name. Recreating a provider with the same name breaks the catalog's connection to the shared data.

`ALTER PROVIDER`, the Databricks CLI, and Catalog Explorer don't support updating provider credentials.

### <a id="rotate-credentials-patch" />Update the credential

Send a `PATCH` request to the provider endpoint with the contents of the new credential file in the `recipient_profile_str` field.

**Permissions required**: Provider object owner or metastore admin.

#### Python

Run the following from a notebook on the recipient workspace. Replace `<provider-name>` with the name of the provider object in your metastore, and update `new_profile` with the values from the new credential file.

```python
import json
import requests

new_profile = {
    "shareCredentialsVersion": 1,
    "bearerToken": "<new-bearer-token>",
    "endpoint": "https://<provider-workspace>.cloud.databricks.com/api/2.0/delta-sharing/metastores/<metastore-id>",
}

token = (
    dbutils.notebook.entry_point.getDbutils()
    .notebook()
    .getContext()
    .apiToken()
    .get()
)
workspace_url = spark.conf.get("spark.databricks.workspaceUrl")

response = requests.patch(
    f"https://{workspace_url}/api/2.1/unity-catalog/providers/<provider-name>",
    headers={
        "Authorization": f"Bearer {token}",
        "Content-Type": "application/json",
    },
    json={"recipient_profile_str": json.dumps(new_profile)},
)

print(response.status_code)
print(response.json())
```

#### curl

```bash
curl --request PATCH \
  --header "Authorization: Bearer $DATABRICKS_TOKEN" \
  --header "Content-Type: application/json" \
  --url "https://<databricks-instance>/api/2.1/unity-catalog/providers/<provider-name>" \
  --data '{
    "recipient_profile_str": "<contents of the new credential file>"
  }'
```

A successful rotation returns the following response with the provider's updated metadata.

```json
{
  "name": "<provider-name>",
  "authentication_type": "TOKEN",
  "owner": "user@example.com",
  "recipient_profile": {
    "share_credentials_version": 1,
    "endpoint": "https://<provider-workspace>.cloud.databricks.com/api/2.0/delta-sharing/metastores/<metastore-id>"
  },
  "updated_at": 1775804332820,
  "updated_by": "user@example.com",
  "id": "abcd2a5b-c18e-46eb-ae11-3056cfe99bef"
}
```

For details, see the [Update a provider](https://docs.databricks.com/api/workspace/providers/update) REST API.

### <a id="rotate-credentials-verify" />Verify the rotation

Confirm that the catalog, schemas, and tables are still accessible. The catalog name should be the same as before rotation.

#### 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 with me** tab, find your provider.

Previous error banners should be gone and the shares should be listed again. The listed catalog should be the same as it was previously.

#### SQL

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

```sql
-- The catalog name should match what it was before rotation
SHOW CATALOGS;

-- Schemas in the shared catalog should still appear
SHOW SCHEMAS IN <catalog-name>;

-- Tables should still appear
SHOW TABLES IN <catalog-name>.<schema-name>;

-- A read from a shared table should return data
SELECT * FROM <catalog-name>.<schema-name>.<table-name> LIMIT 10;
```

If the queries succeed, the rotation is complete and all existing queries, jobs, and dashboards continue to work.

### <a id="rotate-credentials-troubleshooting" />Troubleshooting

| Error                                                                                 | Fix                                                                                                                                                                                                                                                                              |
| ------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Request returns `403 Forbidden`                                                       | You must be the provider owner or a metastore admin to rotate credentials. Ask a metastore admin to apply the rotation or transfer ownership. See [Update a provider (rename, change owner, comment)](https://docs.databricks.com/aws/en/opensharing/manage-provider.md#update). |
| Request returns `404 Not Found`                                                       | The provider name is incorrect. Run `SHOW PROVIDERS` to list the exact names in your metastore.                                                                                                                                                                                  |
| Request returns `400 Bad Request` with message "recipient profile can not be updated" | The API updates credentials only for `TOKEN`, `OAUTH_CLIENT_CREDENTIALS`, and `OIDC_FEDERATION` providers. For Databricks-to-Databricks sharing, credentials rotate automatically.                                                                                               |
| Queries return `TABLE_OR_VIEW_NOT_FOUND`                                              | The catalog name might be incorrect or the catalog-to-provider binding might be broken. Run `SHOW CATALOGS` and `SHOW SCHEMAS IN <catalog-name>` to confirm the catalog exists.                                                                                                  |
| Catalog Explorer shows stale data or errors after a successful `PATCH`.               | You are seeing cached results from before the rotation. Refresh the page or wait a few minutes.                                                                                                                                                                                  |

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

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

When you delete a provider, you and the users in your organization (the recipient) can no longer access the data shared by the provider.

**Permissions required**: Provider 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 with me** tab, find and select the provider.

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

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

### SQL

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

```sql
DROP PROVIDER [IF EXISTS] <provider-name>;
```

For more details about `DROP PROVIDER`, see [DROP PROVIDER](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-syntax-ddl-drop-provider.md).

### CLI

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

```bash
databricks providers delete <provider-name>
```

If the operation is successful, no results are returned.
