Choosing an authorization model: when to use RBAC or ABAC
Authorization decides whether a subject may perform an operation on a resource. Compare role-based and attribute-based access control, then validate the policy and its enforcement.
What an access decision needs
A request usually involves four inputs: the subject (person, process, or device, such as its team or employment status); the resource (file, record, API, or device, with attributes such as owner team or classification); the operation (read, change, delete, or approve); and the environment (time, location, or risk state, when policy uses it). A decision component evaluates these inputs and returns allow or deny. An enforcement point applies that result to the actual request. Hiding a button is not enough; check authorization on the server or data path too.
When to use RBAC or ABAC
Role-based access control (RBAC) groups permissions into job roles, such as editor or billing clerk. It is easy to explain and review when roles are stable and match the work. It becomes cumbersome when many person-resource combinations or contextual conditions require too many narrowly split roles.
Attribute-based access control (ABAC) evaluates subject, resource, operation, and sometimes environment attributes. In a project-document service, a role can grant baseline editing while an ABAC rule also requires an active account and matching team_id values for person and document. This avoids copying a role for every team, but only works safely when attributes are accurate and promptly refreshed. This is an illustrative policy, not a tested product configuration.
| Decision factor | RBAC fits when | ABAC may help when |
|---|---|---|
| Explain access | A few stable roles are enough | Several attributes or context conditions must be combined |
| Manage policy | Permissions can be reviewed by role | Attribute sources and rule quality can be governed |
| Main risk | A role quietly gains excess access | Stale or incorrect attributes grant too much |
Neither model is best everywhere. They can be combined: roles provide understandable baseline permissions and attributes add resource or time limits. Decide who approves policy and owns authoritative attribute data.
Implement and review a policy
Name protected resources and operations precisely; reading, changing, deleting, and approving are different actions.
Select only necessary attributes. Record each authoritative source and refresh schedule.
Write reviewable rules and examples: who may do what, and why?
Find every enforcement point across APIs, servers, and data paths. Do not rely on the client interface alone.
Test both allow and deny cases, including a team move, ended contract, unclassified resource, attribute-service outage, and time boundary. Do not fail open by default.
Record the policy version and necessary inputs for investigation. Review exceptions and attribute changes regularly, without logging unnecessary personal data.
After an employee changes teams, verify when the authoritative team attribute reaches the access decision. A delay may preserve access to the former team’s documents. Decide the safe behavior for an attribute lookup failure before deployment, then rerun the same policy cases after changes.
NIST SP 800-162 defines ABAC and its considerations; SP 800-205 discusses attributes in access-control systems. AC-3 in NIST SP 800-53 addresses enforcement of approved logical access. These are reference guidance, not laws automatically applicable to every organization. Adapt policy to data sensitivity, workflow, applicable law, and system design.
Sources
[NIST SP 800-162 Rev. 2: Attribute Based Access Control](https://csrc.nist.gov/pubs/sp/800/162/upd2/final)
[NIST SP 800-205: Attribute Considerations for Access Control Systems](https://csrc.nist.gov/pubs/sp/800/205/final)
[NIST SP 800-53 Rev. 5 and Release 5.2.0](https://csrc.nist.gov/pubs/sp/800/53/r5/upd1/final)