Cannot access Databricks secrets when using a "No isolation shared" cluster

You cannot use dbutils.secrets.get() when admin protection for No isolation shared clusters is enabled in your account.

Written by sivaprasad.cs

Last published at: March 31st, 2023

Problem

You are using a using a No isolation shared cluster. When you run dbutils.secrets.get() it returns a 401 Unauthorized error message.

Cause

Admin protection for No isolation shared clusters is enabled in your account.

Solution

An account admin has to disable admin protection for No isolation shared clusters.

  1. Log in to the Account Console.
  2. Click Settings.
  3. Click the Feature enablement tab.
  4. Under Enable Admin Protection for “No Isolation Shared” Clusters, click the setting to disable this feature.

Delete

Info

You MUST be a Databricks account admin to disable admin protection. A regular user cannot disable this feature.


For more information, review the Enable admin protection for “No isolation shared” clusters on your account (AWS | Azure | GCP) documentation.

Was this article helpful?