Course contentsShow
← Computer Science
Lesson 2528 of 2,87256. Authentication and AuthorizationFree lesson

Attribute-Based Access Control (ABAC)

Learn how ABAC makes decisions based on attributes of users, resources, and environment.

Attribute-Based Access Control (ABAC)

You'll learn how ABAC makes access decisions by evaluating multiple attributes rather than just roles.

What Is ABAC?

Attribute-Based Access Control (ABAC) is an authorization model that grants or denies access based on attributes of the user, the resource being accessed, and the current environment. Unlike RBAC where you check "Does this role have permission?", ABAC asks "Do the attributes satisfy the policy?"

Think of ABAC like a smart building security system. Instead of just checking your employee badge (role), it considers: your department (user attribute), the room's security level (resource attribute), whether it's business hours (environment attribute), and whether you're on company property (location attribute). All these factors combine to make the decision.

How ABAC Works

ABAC evaluates policies written as rules combining:

User attributes: job title, department, security clearance, employee ID
Resource attributes: classification level, owner, creation date, file type
Environment attributes: time of day, location, network security level, threat level

A policy might state: "Allow access if user.department = 'Finance' AND resource.type = 'financial_report' AND environment.time BETWEEN 9am-5pm AND environment.location = 'corporate_network'"

ABAC vs RBAC

While RBAC assigns broad permissions to roles, ABAC enables fine-grained, context-aware decisions. You can enforce policies like "doctors can only view patient records of their own patients during their shift hours" — something difficult to model with roles alone.

Key Takeaway: ABAC makes authorization decisions by evaluating flexible policies against attributes of users, resources, and environmental context, enabling dynamic, fine-grained access control beyond simple role assignments.