Manage connections in Partner Connect

You can perform administrative tasks with Databricks workspace connections to Databricks Partner Connect partners such as:

  • Managing users of partner accounts.

  • Managing the Databricks service principal and related Databricks personal access token that a connection uses.

  • Disconnecting a workspace from a partner.

To administer Partner Connect, you must sign in to your workspace as a workspace admin. For more information, see Manage users.

Manage partner account users

For partners that allow users to use Partner Connect to sign in to that partner’s account or website (such as Fivetran and Rivery), when someone in your organization connects from one of your Databricks workspaces to one of the Databricks Partner Connect partners for the first time, that person becomes the partner account administrator for that partner across all of your organization’s workspaces. To enable other users within your organization to sign in to that partner, your partner account administrator must first add those users to your organization’s partner account. Some partners allow the partner account administrator to delegate this permission as well. For details, see the documentation on the partner’s website.

If no one can add users to your organization’s partner account (for example, your partner account administrator is no longer available), contact the partner for assistance. For support links, see the list of Databricks Partner Connect partners.

Manage service principals and personal access tokens

For partners that require Databricks service principals, when someone in your Databricks workspace connects to a specific partner for the first time, Partner Connect creates a Databricks service principal in your workspace for use with that partner. Partner Connect generates service principal display names by using the format <PARTNER-NAME>_USER. For example, for the partner Fivetran, the service principal’s display name is FIVETRAN_USER.

Partner Connect also creates a Databricks personal access token and associates it with that Databricks service principal. Partner Connect provides this token’s value to the partner behind the scenes to complete the connection to that partner. You cannot view or get this token’s value. This token does not expire until you or someone else deletes it. See also Disconnect from a partner.

Partner Connect grants the following access permissions to Databricks service principals in your workspace:

Partners

Databricks service principal permissions

Power BI, Tableau, erwin Data Modeler

These solutions do not require Databricks service principals.

dbt Cloud, Fivetran, Hevo Data

  • Use a personal access token.

  • Access your workspace, to call Databricks REST APIs on SQL warehouses in the workspace by using the personal access token.

  • Access Databricks SQL.

  • Use the default catalog.

  • Create databases in the default catalog.

  • Own the tables that it creates. (The service principal cannot query any tables that it does not create.)

Labelbox

  • Use a personal access token.

  • Access your workspace, to upload notebooks.

Anomalo, Hex, Hightouch, Lightup, Qlik Sense, Stardog

  • Use a personal access token.

  • Use the selected Databricks SQL warehouse.

  • Read the selected schemas.

  • Read metadata for the selected schemas.

Disconnect from a partner

If the tile for a partner has a check mark icon, this means that someone in your Databricks workspace has already created a connection to that partner. To disconnect from that partner, you reset that partner’s tile in Partner Connect. Resetting a partner’s tile does the following:

  • Clears the check mark icon from the partner’s tile.

  • Deletes the associated SQL warehouse or cluster if the partner requires one.

  • Deletes the associated Databricks service principal, if the partner requires one. Deleting a service principal also deletes that service principal’s related Databricks personal access token. This token’s value is what completes the connection between your workspace and the partner. For more information, see Manage service principals and personal access tokens.

Warning

Deleting a SQL warehouse, a cluster, a Databricks service principal, or a Databricks service principal’s personal access token is permanent and cannot be undone.

Resetting a partner’s tile does not delete your organization’s related partner account or change related connection settings with the partner. However, resetting a partner’s tile does break the connection between the workspace and the related partner account. To reconnect, you must create a new connection from the workspace to the partner, and then you must manually edit the original connection settings in the related partner account to match the new connection settings.

To reset a partner’s tile, click the tile, click Delete Connection, and then follow the on-screen directions.

Alternatively, you can manually disconnect a Databricks workspace from a partner by deleting the related Databricks service principal in your workspace that is associated with that partner. You might want to do this if you want to disconnect your workspace from a partner but still keep other associated resources and still keep the check mark icon displayed on the tile. Deleting a service principal also deletes that service principal’s related personal access token. This token’s value is what completes the connection between your workspace and the partner. For more information, see Manage service principals and personal access tokens.

To delete a Databricks service principal, you use the Databricks REST API as follows:

  1. Get the Databricks service principal’s application ID by calling the GET /preview/scim/v2/ServicePrincipals operation in the Databricks SCIM (ServicePrincipals) REST API for your workspace. Make a note of the service principal’s applicationId in the response.

  2. Use the service principal’s applicationId to call the DELETE /preview/scim/v2/ServicePrincipals operation in the Databricks SCIM (ServicePrincipals) REST API for your workspace.

For example, to get the list of available service principal display names and application IDs for a workspace, you can call curl as follows:

curl --netrc --request GET \
https://<databricks-instance>/api/2.0/preview/scim/v2/ServicePrincipals \
| jq '[ .Resources[] | { displayName: .displayName, applicationId: .applicationId } ]'

Replace <databricks-instance> with the Databricks workspace instance name, for example 1234567890123456.7.gcp.databricks.com for your workspace.

The service principal’s display name is in the output’s displayName field. Partner Connect generates service principal display names using the format <PARTNER-NAME>_USER. For example, for the partner Fivetran, the service principal’s display name is FIVETRAN_USER.

The service principal’s application ID value is in the output’s applicationId field, for example 123456a7-8901-2b3c-45de-f678a901b2c.

To delete the service principal, you can call curl as follows:

curl --netrc --request DELETE \
https://<databricks-instance>/api/2.0/preview/scim/v2/ServicePrincipals/<application-id>

Replace:

  • <databricks-instance> with the workspace instance name, for example 1234567890123456.7.gcp.databricks.com for your workspace.

  • <application-id> with the service principal’s application ID value.

The preceding examples use a .netrc file and jq. Note that in this case, the .netrc file uses your personal access token value–not the one for the service principal.

After you disconnect your workspace from a partner, you might want to clean up any related resources that the partner creates in the workspace. This could include a SQL warehouse or cluster and any related data storage locations. For more information, see Start, stop, or delete a SQL warehouse or Delete a cluster.

If you’re sure that there are no other workspaces across your organization that are connected to the partner, you might also want to delete your organization’s account with that partner. To do this, contact the partner for assistance. For support links, see the list of Databricks Partner Connect partners.