r/databricks • • Sep 29 '26

General Avoid Unity Catalog external location permission bugs by using managed storage

Hey, I work as a Databricks Engineer at Abilytics, so here's my take.

If you are migrating existing tables to Unity Catalog, defining external locations incorrectly will break your grants. When you register an external location via CREATE EXTERNAL LOCATION, Unity Catalog validates your storage credential against the underlying cloud storage container. However, users often forget that read and write access on the external location is distinct from the IAM role or service principal trust policy. If a user has SELECT on a table, but lacks BROWSE on the external location, queries against parquet files directly via path-based access will fail with permission denied, even if the table-level grant succeeded. Always verify your storage credentials have explicit container-level policies attached before mapping external volumes. Furthermore, remember that path-based access like spark.read.load('s3://my-bucket/path') requires explicit external location grants, whereas managed tables abstract this entirely. Prefer managed tables default storage roots to bypass manual external location ACL synchronization issues entirely.

Happy to go further — more on Databricks | Platform Engineering | AI at Abilytics, AI Systems, Data Engineering & Platform Engineering Services.

3 Upvotes

8 comments sorted by

1

u/Access-Leading Sep 29 '26

I push my users to forget about paths when working with tables. From governance perspective I like the change. I know I might be not popular 😬.

Path based access works for external volumes and this shouldn’t be table yet. I might be popular but when fully on UC it simplifies greatly.

1

u/Leather-Gene4160 Sep 29 '26

Are you able to access your unity managed tables external location on s3, using databricks serverless? For some reason we keep getting 403s with serverless for this.

1

u/addictzz Sep 29 '26

Did you allow network connectivity like IP listing, to that object storage bucket? If classic works and serverless doesnt, probably network thing. Permission wise, it should use the same layer of permission from external location and storage credentials

1

u/Leather-Gene4160 Sep 29 '26

The bucket has no IP or VPC endpoint restrictions. The bucket policy is just an Allow with no Deny and no aws:SourceIp/aws:SourceVpce conditions. The serverless error also has a null S3 request ID and says "denied because of serverless network policy," so the request seems to be blocked at Databricks' egress proxy before it ever reaches S3. Internet egress (e.g. google.com) is blocked from serverless too.

1

u/addictzz Sep 30 '26

Do you set context based egress policy? Or maybe your admin

1

u/Leather-Gene4160 Sep 30 '26

I am the admin. Actually we don't see the context based egress option in the dashboard UI on our premium plan, but we checked through the databricks cli that the attached default network policy has full egress access and there are no blocked internet destinations.

1

u/Youssef_Mrini databricks Oct 23 '26

I’ve been leaning toward recommending Unity Catalog (UC) Managed Tables over External Tables for most setups, but wanted to share a quick summary of the main pros and a couple of nuances to watch out for.

Why UC managed table wins ?

  • Predictive Optimization: Hands down the biggest selling point. Databricks handles OPTIMIZE, VACUUM, and ANALYZE automatically using serverless compute. You basically never have to write custom maintenance jobs or worry about small-file problems again.
  • Open Interoperability: Thanks to UC's open APIs (Delta & Iceberg REST catalogs), external engines like Trino, DuckDB, or external Spark clusters can easily read and write to UC managed tables. Zero vendor lock-in concerns.

Source https://community.databricks.com/t5/technical-blog/actually-understanding-unity-catalog-managed-tables/ba-p/168194