Allow NotebookUtils getSecret() to authenticate with Workspace Identity
Current behavior
In Microsoft Fabric, notebookutils.credentials.getSecret() authenticates against Azure Key Vault using the identity of the user who executes the notebook.
This behavior applies not only to interactive notebook execution but also to pipeline and scheduled executions in our environment.
Problem
Many enterprise environments separate responsibilities across multiple teams:
- Fabric administrators
- Azure administrators
- Entra ID administrators
Because getSecret() uses the executing user's identity, every Fabric notebook developer and operator must be granted Azure Key Vault permissions individually.
This creates significant operational overhead and makes centralized credential management difficult.
We have already enabled Workspace Identity and assigned the required Azure Key Vault permissions to it. However, notebookutils.credentials.getSecret() still authenticates using the user identity instead of the Workspace Identity.
As a result, Workspace Identity cannot currently be used as a central security boundary for Key Vault access in Fabric notebooks.
Requested enhancement
Please provide an option for notebookutils.credentials.getSecret() to authenticate using Workspace Identity instead of the executing user identity.
Example:
notebookutils.credentials.getSecret(
vaultUrl,
secretName,
authMode="WorkspaceIdentity"
)
or
Provide a workspace-level setting that enables Workspace Identity as the authentication context for Azure Key Vault access.
Benefits
- Centralized permission management
- No need to grant Key Vault access to every developer individually
- Better alignment with Workspace Identity governance model
- Improved enterprise security and maintainability
- Easier migration from hardcoded secrets to Azure Key Vault
This capability would significantly improve real-world enterprise adoption of Azure Key Vault within Microsoft Fabric.
We verified that Azure Key Vault access succeeds when permissions are assigned directly to the executing user, but fails when only Workspace Identity is granted access. This confirms that Key Vault access is currently evaluated using the executing user's identity rather than the Workspace Identity.
1 Comment
- frithjof_v
Community Champion
Voted.
Please consider voting for this Idea as well, which would allow running an entire notebook interactively as workspace identity:
https://community.fabric.microsoft.com/idea/fbc_ideas/interactively-run-notebook-as-service-principal-workspace-identity-or-managed-id/5000259
Recent ideas
Add "Collapse all / Expand all" to the Queries pane in Power Query Editor
Hi Fabric Community, I suggest adding a "..." menu beside Queries(n])with Collapse all and Expand all. Current state: With many queries, every group and Helper Queries folder is expanded. My 8...DataVitalizer22 minutes agoSuper UserNew3Views0likes0CommentsAdd Automated Pre-Upgrade Compatibility Assessment for Fabric Spark Runtimes
Microsoft Fabric should provide an automated compatibility assessment before a workspace, Environment, notebook, or Spark Job Definition is upgraded to a newer Fabric Runtime. Spark runtime upgra...mourakshit1 hour agoNew MemberNew3Views0likes0CommentsSupport Creator-Independent Managed Identity and Ownership Transfer for Fabric Operations Agents
Microsoft Fabric Operations Agents should support an enterprise identity and ownership model that is independent of the individual user who originally created the agent. Today, an Operations Agent r...mourakshit1 hour agoNew MemberNew2Views0likes0CommentsAdd Centralized Health, Freshness Monitoring, and Alerts for OneLake Shortcuts
Microsoft Fabric should provide a centralized health-monitoring experience for OneLake Shortcuts across workspaces and data sources. As organizations adopt OneLake Shortcuts at enterprise scale, hun...mourakshit1 hour agoNew MemberNew3Views0likes0CommentsAdd Schema Compatibility Policies and Breaking-Change Detection to Fabric Event Schema Registry
Fabric Event Schema Registry should support configurable schema compatibility policies so teams can safely evolve event contracts without breaking downstream Eventstreams, Eventhouse ingestion, appli...mourakshit1 hour agoNew MemberNew2Views0likes0Comments