Passwords & identity

Role-Based Access Control (RBAC): How It Works, Models, and Examples

RBAC stops permission sprawl by giving access to job roles instead of individual people. Here is how the model works, where it breaks, and how to roll it out.

Cysoro Security TeamPublished · 9 min read
Helpdesk Admin Finance Approver Read-Only Auditor PASSWORDS & IDENTITY Role-based access control Access follows the job, not the person.
Quick answer

Role-based access control (RBAC) is a security model in which permissions are assigned to roles, and users receive permissions only by being assigned a role. A role is a collection of permissions tied to a job function, such as Helpdesk Administrator or Finance Approver, so access changes when a person's role changes instead of requiring one-off grants.

Key takeaways

  • RBAC grants permissions to roles, never directly to people, so a job change means a role change, not a hunt through scattered grants.
  • The NIST model has four layers: core RBAC, hierarchical RBAC with inheritance, and static and dynamic separation of duties.
  • Role explosion, stale roles and over-broad roles are the usual failures, and regular access reviews are what keeps RBAC honest.

Every company has the same problem: dozens of systems, hundreds of permissions, and people who change jobs. Role-based access control, or RBAC, solves it by putting a job role between the person and the permission, so access follows the job instead of the individual.

What is role-based access control?

Role-based access control (RBAC) is a security model in which permissions are assigned to roles, and users receive permissions only by being assigned a role. A role is a collection of permissions that matches a job function, such as Helpdesk Administrator, Finance Approver or Read-Only Auditor.

The model was proposed by David Ferraiolo and Richard Kuhn at NIST in 1992, as an alternative to the older discretionary and mandatory access control models, and it was later standardized as ANSI INCITS 359. NIST's project page explains the core idea in one sentence: all access is through roles, and a role is essentially a collection of permissions.

The practical effect is simple. When someone joins, you assign them the role for their job and they can work immediately. When they change jobs, you swap the role. When they leave, you remove the role. Nobody's access is a personal collection of one-off grants that nobody remembers granting.

How does RBAC work?

RBAC works as a chain: a user is assigned to one or more roles, each role holds a set of permissions, and each permission allows a specific action on a specific resource. When a user tries to do something, the system checks the permissions of their active roles, not their identity.

The original NIST model states three rules that hold the chain together. First, role assignment: a person can act only through a role they have been assigned. Second, role authorization: the active role must be one the person is authorized to hold. Third, transaction authorization: the action must be permitted by that role.

Most systems add a fourth element, the session. A user activates only a subset of their roles in a given session, so an administrator can browse with ordinary powers by default and step up to admin powers deliberately. This is why RBAC is often drawn as user, role, permission and session.

How RBAC connects people to permissions Users Maria (AP clerk) David (manager) Priya (auditor) Sam (helpdesk) Roles Invoice Creator Payment Approver Read-Only Auditor Helpdesk Admin Permissions create invoice approve payment view reports reset password Users never receive permissions directly — they inherit them through roles.
Users are assigned to roles, and roles hold the permissions. Illustration by Cysoro.

A key distinction in the NIST model: a group is a collection of users, while a role is a collection of permissions. Groups answer "who is in this set?" Roles answer "what can this set do?" Confusing the two is one of the most common RBAC mistakes.

What are the components of RBAC?

The NIST model defines five building blocks: users, roles, permissions, sessions and constraints. Users are people or systems that need access. Roles bundle permissions by job function. Permissions pair an action with a resource, such as "approve payment in the finance system".

Sessions are the active context in which a user works. A user may hold several roles but activate only some of them at a time, which limits the damage if a session is hijacked. Constraints are the rules that keep the model honest, and the most important is separation of duties.

Separation of duties comes in two forms. Static separation forbids assigning two conflicting roles to the same person at all, so nobody can be both payment creator and payment approver. Dynamic separation allows the assignment but forbids activating both roles in the same session.

What are the RBAC models: RBAC0 to RBAC3?

The NIST and Sandhu framework defines four levels. RBAC0 is the base model: users, roles, permissions and sessions, with no hierarchy and no constraints. Most small systems start here and it is enough for many of them.

RBAC1 adds role hierarchies. A senior role inherits the permissions of junior roles, so a Manager role automatically includes everything an Employee role can do, plus its own extra permissions. This removes duplication but needs care, because a badly drawn hierarchy quietly hands out broad access.

RBAC2 adds constraints, chiefly separation of duties, without hierarchies. RBAC3 combines both: hierarchies and constraints together. NIST's own standard describes these as core RBAC, hierarchical RBAC, static separation of duties and dynamic separation of duties.

ModelAddsBest for
RBAC0 (core)Users, roles, permissions, sessionsSmall teams and simple apps
RBAC1 (hierarchical)Role inheritanceOrganizations with clear job ladders
RBAC2 (constrained)Separation of dutiesFinance and regulated processes
RBAC3 (combined)Hierarchies plus constraintsLarge enterprises and compliance programs

RBAC vs ABAC vs DAC vs MAC: what is the difference?

RBAC is one of four classic access models, and each answers a different question. Discretionary access control (DAC) lets resource owners decide who gets access, which is flexible but hard to audit. Mandatory access control (MAC) assigns fixed security labels and is used mainly in government and military systems.

Attribute-based access control (ABAC) decides access from attributes: the user's department, the device's health, the time of day, the sensitivity of the data. NIST's guide to ABAC is SP 800-162, and it is the natural complement to RBAC rather than a replacement.

ModelAccess decided byStrengthWeakness
RBACAssigned job roleSimple to manage and auditToo coarse for context rules
ABACAttributes and policyFine-grained, context-awareComplex policies, hard to audit
DACResource owner's choiceFlexibleSprawl, weak audit trail
MACFixed security labelsVery strong enforcementRigid, costly to run

In practice, most organizations use RBAC for the broad structure and add attribute conditions where they matter, for example allowing a role to approve payments only during business hours or only from a managed device. Our small business cybersecurity checklist covers access control alongside the other baseline controls.

What are the benefits of RBAC?

The biggest benefit is operational: onboarding, job changes and offboarding become role changes, which take minutes instead of a ticket queue full of individual permission requests. Auditors also love RBAC, because they can ask "who holds the Payment Approver role?" and get one list instead of tracing grants across ten systems.

RBAC also enforces least privilege by construction. If permissions live only in roles and roles are designed around real jobs, nobody accumulates access simply because someone once granted it and nobody removed it. That matters because stale, standing access is one of the most common ways attackers move after an initial compromise.

Finally, RBAC makes compliance cheaper. Regulations and frameworks such as SOC 2 and ISO 27001 expect access to be reviewed and tied to job need, and a role model gives you the evidence in a form an auditor can actually read.

What goes wrong with RBAC?

Role explosion is the classic failure. Teams create a new role for every exception, and soon there are hundreds of roles that nobody understands, which is no better than individual permissions. The fix is discipline: a small set of job-based roles, with exceptions handled by time-limited grants or attribute conditions rather than new roles.

Over-broad roles are the second failure. A role called "Admin" that can do everything in a system defeats the purpose. Roles should be named for the job and scoped to what that job actually needs, and privileged roles should be reviewed every quarter.

Stale roles are the third. People keep roles from old jobs because nobody removed them, and the accumulation is invisible until an incident. Regular access reviews, ideally automated, are the only reliable cure. If a role has not been used in 90 days, question whether anyone still needs it.

Five RBAC mistakes — and the fix for each Role explosionCap roles; use time-limited grants Over-broad admin rolesSplit admin into narrow roles Stale roles after job changesReview access every 6 months Roles confused with groupsGroups hold people; roles hold rights No separation of dutiesForbid conflicting role pairs
The five most common RBAC failures and how to fix them. Illustration by Cysoro.

How do you implement RBAC?

Start with an inventory, not with roles. List your systems, the permissions each one offers, and who currently holds them. The surprises in that list, such as ex-employees with live access, are usually the best argument for the project.

  1. Map job functions. Group real jobs into 10–30 roles. If you need more than 50, your roles are probably too narrow.
  2. Define each role's permissions. Write down exactly what each role can do, and get the business owner of that function to sign it off.
  3. Apply separation of duties. List the role pairs that must never combine, such as payment creator and payment approver.
  4. Assign roles to people. Move everyone from individual grants to roles, and remove the old direct grants.
  5. Build the joiner, mover and leaver process. Role assignment must happen automatically when HR records a job change.
  6. Review access regularly. Managers confirm their team's roles every six months; privileged roles every quarter.
  7. Monitor and audit. Log role changes and privileged actions, and alert on unusual role assignments.

Role mining tools can suggest candidate roles from existing permission data, but treat their output as a draft. A mined role that mirrors today's messy grants just automates the mess. Validate every candidate role against the actual job before you adopt it.

How does RBAC work in Microsoft Entra ID?

Microsoft Entra ID, the identity service behind Microsoft 365 and Azure, has its own RBAC system for managing directory resources such as users, groups and applications. It offers built-in roles with fixed permission sets, and custom roles you define yourself.

Built-in roles cover common jobs: Global Administrator has full control, User Administrator manages users and resets passwords, and Helpdesk Administrator resets passwords and unlocks accounts. A role assignment attaches a role definition to a person at a particular scope, following the same user, role, permission pattern as the NIST model.

Using built-in roles is free. Custom roles require a Microsoft Entra ID P1 license for every user with a custom role assignment, as Microsoft Learn documents.

P1 costs $7 per user per month, and P2 costs $10, after Microsoft raised both prices on 1 July 2026 from $6 and $9. For most small teams, built-in roles plus careful scoping are enough, and custom roles are worth the license only when a built-in role is clearly too broad.

Entra ID roles control the directory itself, which is different from Azure RBAC, which controls Azure resources such as virtual machines and storage. Keep the two straight when you plan, because a person can hold different roles in each system. Strong identity hygiene matters here: a pass-the-hash attack can turn a single stolen credential into broad access, which is exactly what least-privilege roles are meant to limit.

What do RBAC roles look like in practice?

Concrete roles make the model real. The table below shows typical roles for a small company, with the permissions each one holds and the separation-of-duties rule that constrains it.

RoleCan doCannot do
Helpdesk AdministratorReset passwords, unlock accountsAssign roles, change billing
Finance ApproverApprove payments up to a limitCreate payment requests
Accounts Payable ClerkCreate invoices and payment requestsApprove payments
Read-Only AuditorView reports and logsChange anything
Security AdministratorManage policies and alertsAssign admin roles

Notice the pattern: every role is named for a job, every role is narrower than the person holding it might like, and the two finance roles are deliberately split. That split is separation of duties doing its job.

The bottom line

RBAC is not glamorous, but it is the control that makes every other control manageable. Permissions tied to roles, roles tied to jobs, and regular reviews to keep the whole thing honest.

Start small: pick your five most important systems, define ten to twenty roles, and move everyone onto them. Then automate the joiner, mover and leaver process, and review privileged roles every quarter. You can check the rest of your baseline against our small business cybersecurity checklist.

Frequently asked questions

What is role-based access control in simple terms?

RBAC is a way of deciding who can do what by job role. Instead of giving each person individual permissions, you define roles such as Editor, Approver or Administrator, give each role the permissions its job needs, and assign people to roles. When someone changes jobs, you change their role and their access changes with it.

What is the difference between RBAC and ABAC?

RBAC grants access based on a person's assigned role, while ABAC grants access based on attributes such as department, location, device health and time of day. RBAC is simpler to run and audit, while ABAC is more flexible for fine-grained rules. Many organizations use RBAC for broad access and add attribute conditions for sensitive resources.

What are the three rules of RBAC?

The original NIST model has three rules: a person can act only through a role they have been assigned, the role itself must be authorized for that person, and an action is allowed only if the active role holds the permission for it. Together they mean nobody ever acts outside a role.

What is an example of role-based access control?

In a finance team, an Accounts Payable Clerk role can create invoices but not approve payments, while a Finance Approver role can approve payments but not create them. A new clerk gets the clerk role on day one and can do the job immediately, without anyone granting permissions one by one.

What is role explosion in RBAC?

Role explosion is when the number of roles grows until RBAC is no harder to manage than the individual permissions it replaced. It happens when teams create a new role for every exception instead of reusing broad roles. The fix is to keep a small set of job-based roles and handle exceptions with conditions or time-limited grants.

Is RBAC the same as least privilege?

No, but RBAC is the main way organizations put least privilege into practice. Least privilege is the principle that everyone gets only the access they need. RBAC enforces it by tying permissions to job functions and reviewing role assignments regularly.

Do I need a paid license for RBAC in Microsoft Entra ID?

Built-in Entra ID roles are free to use. Custom roles, which let you build a role with exactly the permissions you need, require a Microsoft Entra ID P1 license for every user with a custom role assignment. P1 costs $7 per user per month, and P2 costs $10.

How often should access roles be reviewed?

At least every six months for standard roles and every quarter for privileged roles, plus a review whenever someone changes jobs or leaves. Access reviews catch stale roles, which are one of the most common ways attackers gain standing access they should never have had.

Sources

  1. NIST CSRC — Role Based Access Control
  2. NIST IR 6192 — A Revised Model for Role Based Access Control
  3. Microsoft Learn — Overview of Microsoft Entra role-based access control (RBAC)
  4. NIST SP 800-162 — Guide to Attribute Based Access Control (ABAC)
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against the NIST CSRC Role Based Access Control project pages, NIST IR 6192 and Microsoft Learn Entra ID RBAC documentation.

How we write and fact-check →

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free