RBAC vs. ABAC
Access Control Models
Understand the two dominant approaches to access control in modern systems: Role-Based and Attribute-Based models.
What Is Access Control?
Access control is the security practice of determining who can access what resources and under what conditions. It is one of the most fundamental pillars of cybersecurity.
Role-Based Access Control (RBAC)
In RBAC, access permissions are assigned to roles, and users are assigned to roles. A user inherits all permissions associated with their role(s).
Attribute-Based Access Control (ABAC)
In ABAC, access decisions are made by evaluating attributes of the user, the resource, the action, and the environment against a set of policies.
Why Does Access Control Matter?
Choosing the right access control model directly impacts your organization's security posture, regulatory compliance, and operational efficiency.
The RBAC Model: Core Principles
The ABAC Model: Core Principles
RBAC vs. ABAC: The Key Distinction
RBAC Role Hierarchies
RBAC supports role hierarchies where senior roles inherit all permissions from junior roles. This simplifies management in large organizations.
ABAC Policy Example
An ABAC policy is a rule that combines attributes using logical conditions. Here is an example policy for accessing patient records:
How to Choose a Model
Example 1: RBAC in a School System
A school system has three roles: Principal, Teacher, and Student. Determine who can perform each action.
| Action | Principal | Teacher | Student |
|---|---|---|---|
| View Grades | ✓ | ✓ | ✓ (own) |
| Edit Grades | ✓ | ✓ | ✕ |
| Manage Teachers | ✓ | ✕ | ✕ |
| Expel Students | ✓ | ✕ | ✕ |
Example 2: ABAC for the Same School
With ABAC, we can write a single policy that handles the nuance RBAC could not:
Example 3: Hybrid RBAC + ABAC
A hospital uses RBAC for broad access tiers and ABAC for contextual refinements. Consider a nurse trying to access patient records:
Common Mistakes
Summary Comparison
| Criterion | RBAC | ABAC |
|---|---|---|
| Decision basis | User's role | Multiple attributes |
| Granularity | Coarse-grained | Fine-grained |
| Scalability | Can suffer role explosion | Scales with attributes |
| Implementation | Simpler, well-understood | More complex setup |
| Context-awareness | None (static) | Yes (dynamic) |
| Best for | Stable organizations with clear hierarchy | Dynamic environments needing contextual control |
| Standards | NIST RBAC (2004) | NIST ABAC (SP 800-162) |
Question 1 of 5
In RBAC, permissions are assigned directly to:
Question 2 of 5
Which of the following is NOT a category of attribute used in ABAC?
Question 3 of 5
A company creates separate roles like "Morning-Shift-Nurse", "Night-Shift-Nurse", "Weekend-Nurse-Ward-A", etc. This problem is called:
Question 4 of 5
A hospital wants to ensure that doctors can only access patient records during business hours and from hospital devices. Which model best supports this?
Question 5 of 5
Which statement about RBAC and ABAC is most accurate?