<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Permission Denied when Creating External Tables Using Workspace Default Credential in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/permission-denied-when-creating-external-tables-using-workspace/m-p/141877#M51842</link>
    <description>&lt;P data-unlink="true"&gt;&lt;SPAN&gt;Thanks j_unspeakable, and more thanks to &lt;SPAN class=""&gt;artopihlaja&lt;/SPAN&gt;&amp;nbsp;for "&lt;STRONG&gt;I reassigned the external location to the custom credential&lt;/STRONG&gt;", because that was the dealbreaker for me.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Dec 2025 16:12:20 GMT</pubDate>
    <dc:creator>almed</dc:creator>
    <dc:date>2025-12-15T16:12:20Z</dc:date>
    <item>
      <title>Permission Denied when Creating External Tables Using Workspace Default Credential</title>
      <link>https://community.databricks.com/t5/data-engineering/permission-denied-when-creating-external-tables-using-workspace/m-p/121813#M46557</link>
      <description>&lt;P&gt;I’m building out schemas, volumes, and external Delta tables in Unity Catalog via &lt;STRONG&gt;Terraform&lt;/STRONG&gt;. The schemas and volumes are created successfully, but all external tables are failing.&lt;/P&gt;&lt;P&gt;The error message from Terraform doesn't highlight what the issue is but returns just &lt;EM&gt;&lt;STRONG&gt;(Error: cannot create sql table: statement failed to execute: FAILED)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I tested manually in the Databricks SQL editor with&lt;EM&gt;:&lt;/EM&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CREATE TABLE catalog.schema.fr012
USING DELTA
LOCATION 'abfss://nexus-dev@stinfinasdevuks.dfs.core.windows.net/gold/table/fr002';&lt;/LI-CODE&gt;&lt;P&gt;and I got this error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;PERMISSION_DENIED: The credential 'dbw_infinas_dev_uks' is a workspace default credential that is only allowed to access data in the following paths:
'abfss://unity-catalog-storage@dbstoragefkilqgly2oevu.dfs.core.windows.net/1390520157504627'.
Please ensure that any path accessed using this credential is under one of these paths.&lt;/LI-CODE&gt;&lt;P&gt;However, I was able to &lt;STRONG&gt;create and browse&lt;/STRONG&gt; the same&amp;nbsp;&lt;STRONG&gt;External Location&lt;/STRONG&gt; in the Unity Catalog UI using the same default credential.&lt;/P&gt;&lt;P&gt;I did some research and found that workspace default credentials in Databricks are not exclusively scoped to Databricks' managed storage paths.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;While they can be used to access managed storage, they can also be used to access external storage locations as well, particularly when leveraging storage credentials and external locations.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Questions:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Is it expected that the &lt;STRONG&gt;workspace default credential&lt;/STRONG&gt; can access an External Location but &lt;STRONG&gt;not be allowed&lt;/STRONG&gt; to use it in external table creation?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Will creating a &lt;STRONG&gt;separate storage credential&lt;/STRONG&gt; and external location (backed by an SPN/MANAGED_IDENTITY) resolve the table-creation issue?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;I found examples stating default credentials &lt;EM&gt;can&lt;/EM&gt; access external data—are these outdated, or am I missing steps?&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;HR /&gt;&lt;P&gt;I’ve attached screenshots of:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;The External Location with the default credential&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;The PERMISSION_DENIED error message&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17535i3192C5D3053D94FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17536i73891AE21330E530/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-06-15 152848.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17537i2DAF521BFA0AA388/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-06-15 152848.png" alt="Screenshot 2025-06-15 152848.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jun 2025 14:34:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/permission-denied-when-creating-external-tables-using-workspace/m-p/121813#M46557</guid>
      <dc:creator>j_unspeakable</dc:creator>
      <dc:date>2025-06-15T14:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Permission Denied when Creating External Tables Using Workspace Default Credential</title>
      <link>https://community.databricks.com/t5/data-engineering/permission-denied-when-creating-external-tables-using-workspace/m-p/121883#M46586</link>
      <description>&lt;P&gt;I was able to fix this by creating a new Access Connector for Azure Databricks, assigning the appropriate permission to the storage account, creating a new storage credential and using the credential to register my external location.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/connect/unity-catalog/cloud-storage/storage-credentials" target="_self"&gt;https://learn.microsoft.com/en-us/azure/databricks/connect/unity-catalog/cloud-storage/storage-credentials&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2025 14:42:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/permission-denied-when-creating-external-tables-using-workspace/m-p/121883#M46586</guid>
      <dc:creator>j_unspeakable</dc:creator>
      <dc:date>2025-06-16T14:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Permission Denied when Creating External Tables Using Workspace Default Credential</title>
      <link>https://community.databricks.com/t5/data-engineering/permission-denied-when-creating-external-tables-using-workspace/m-p/130862#M48927</link>
      <description>&lt;P&gt;I had the same issue, thank you my dear&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2025 15:26:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/permission-denied-when-creating-external-tables-using-workspace/m-p/130862#M48927</guid>
      <dc:creator>IanB</dc:creator>
      <dc:date>2025-09-04T15:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Permission Denied when Creating External Tables Using Workspace Default Credential</title>
      <link>https://community.databricks.com/t5/data-engineering/permission-denied-when-creating-external-tables-using-workspace/m-p/134778#M50192</link>
      <description>&lt;P&gt;Feature or bug, I discovered the same. I couldn't create tables with the default credential.&amp;nbsp;&lt;BR /&gt;To test, I assigned the default credential and a custom credential the same access rights to the storage container that is the target of the external location. When the external location was assigned to the the default credential, I got the error message&amp;nbsp;&lt;EM&gt;PERMISSION_DENIED: The credential 'tekdata_databricks_dev' is a workspace default credential that is only allowed to&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I reassigned the external location to the custom credential, table creation was OK.&amp;nbsp;&lt;/SPAN&gt;I didn't find this behaviour in the documentation, but Copilot pulled it up from somewhere.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 18:51:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/permission-denied-when-creating-external-tables-using-workspace/m-p/134778#M50192</guid>
      <dc:creator>artopihlaja</dc:creator>
      <dc:date>2025-10-13T18:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Permission Denied when Creating External Tables Using Workspace Default Credential</title>
      <link>https://community.databricks.com/t5/data-engineering/permission-denied-when-creating-external-tables-using-workspace/m-p/141877#M51842</link>
      <description>&lt;P data-unlink="true"&gt;&lt;SPAN&gt;Thanks j_unspeakable, and more thanks to &lt;SPAN class=""&gt;artopihlaja&lt;/SPAN&gt;&amp;nbsp;for "&lt;STRONG&gt;I reassigned the external location to the custom credential&lt;/STRONG&gt;", because that was the dealbreaker for me.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2025 16:12:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/permission-denied-when-creating-external-tables-using-workspace/m-p/141877#M51842</guid>
      <dc:creator>almed</dc:creator>
      <dc:date>2025-12-15T16:12:20Z</dc:date>
    </item>
  </channel>
</rss>

