โ07-25-2025 05:54 AM - edited โ07-25-2025 05:58 AM
What Is ABAC and Why Does It Matter?
Attribute-Based Access Control (ABAC) is a data governance model now available in Databricks, designed to offer fine-grained, dynamic, and scalable access control for data, AI assets, and files managed through Databricksโ Unity Catalog. While currently in Beta for both AWS and Azure Databricks, ABAC builds onโand coexists withโthe existing Unity Catalog (UC) security model, adding powerful new capabilities for secure and compliant data management.
With ABAC, access is governed not just by static roles, but by the broader attributes of users, data, and the environment. These attributes can include user role, department, region, time, or custom tags attached to data assets. The system allows administrators to define policies that adapt automatically as attributes or business contexts change.
Key ABAC Components
How ABAC Works: Benefits Over Traditional Models
Benefit | Traditional Limitations | How ABAC Helps Now |
User Attribute Access | Hard to restrict access by region/dept | ABAC uses attributes (e.g., region = "EU") for contextual access |
Row-Level Security | No row-level filteringโsame view for all | Users see only allowed rows (e.g., India team sees only India data) |
Column-Level Security | Sensitive columns always visible by role | Hides sensitive columns based on user/data classification |
Dynamic Policies | Static rules, manual updates needed | Policies adjust with user/data changes automatically |
Fewer Roles Needed | Role explosion for teams, regions | One role serves many users via attribute conditions |
Compliance & Privacy | Custom logic needed; limited to UC | ABAC enforces rules directly within Unity Catalog |
Scalable Security | Hard to manage at enterprise scale | Scales via metadata/tags, not via multiplying roles |
Tags: The Heart of ABAC in Databricks
Tags are key-value metadata pairs (e.g., {"sensitivity": "confidential"}, {"region": "EMEA"}) that you can attach to any data assetโcatalogs, schemas, tables, columns, and beyond. Tags:
ABAC Policies and Inheritance:
Fine-Grained Controls: Row Filters and Column Masks:
Real-World Example
Suppose you have a global customer table:
Now, a user from the EU in the Marketing department can only see EU addresses, and will never see sensitive columns like SSN.
ABAC in Action: Demo Steps
Below are practical demonstrations reflecting ABAC's capabilities, including how to set up and test row-level and column-level security using tags and policies in Databricks.
1. Creating Tags for ABAC Policies
Tags, defined as key-value pairs, help classify and govern objects. You can create it via Tag Policies :
Example:
2. Creating Policies with Tags
Policies are then built to automate access control using these tags:
Example of a policy setup:
3. Applying Tags on Datasets
Tags can be applied to data objects using three methods:
Example:
4. Test Cases: Execution
Testing demonstrates how ABAC dynamically controls data access for different user personas based on policies:
Why Adopt ABAC in Databricks?
ABAC in Databricks is a major advance for organizations seeking next-generation data security, compliance, and operational ease across cloud-scale data platforms.
Note: ABAC is currently in Beta on AWS and Azure Databricks. Make sure to consult the documentation for the latest implementation steps and Beta conditions.
โ07-25-2025 06:07 AM
Very detailed post on ABAC @TejeshS . all the best. Keep writing more.
โ07-29-2025 02:05 AM
Insightful!! @TejeshS. Thanks for sharing.
2 weeks ago - last edited 2 weeks ago
You have mentioned 4 types of ABAC Policies. Since ABAC is now in Beta, we are trying to evaluate it for use cases for a client.
We are looking for the GRANT and DENY types on tables based on Tags, however we don't see that even after enabling the feature in our workspace, neither do i find that in any of DBX docs
Has it been deprecated (would be very unfortunate if so), if not any idea around the roadmap of it.?
Passionate about hosting events and connecting people? Help us grow a vibrant local communityโsign up today to get started!
Sign Up Now