What is RBAC (Role Based Access Control)?

RBAC, or role based access control, is a way to manage permissions by assigning them to roles and assigning users or services to those roles. Instead of setting every permission separately for every account, an organisation defines what each role can do and who is allowed to use it.
For example, a support role might be able to view connection status, while a network administrator role can change router settings. The permission should also apply to the correct resources: being able to view one customer's service does not necessarily mean being able to view every customer's service.
RBAC is a model for organising access control. Its usefulness depends on the permissions inside each role, the people and services assigned to it, the scope of the assignment and how the system enforces the decision.
How RBAC works
In the basic model, a permission describes an operation on an object, such as reading a report or changing a configuration. A role collects permissions needed for a function. A user can be assigned one or more roles, and a role can be assigned to multiple users. Some implementations also support service identities and groups.
The NIST RBAC project describes the relationship between users, roles and privileges, and explains how role hierarchies and constraints can extend the basic model. Products may implement only some features of the formal model or add their own rules.
The illustration shows users or services receiving roles, with each role grouping permissions for actions on resources. The final panel represents the ongoing review of those assignments.

Identify the resource and the action requested.
Determine the requester and the roles assigned or active for that requester.
Check the permissions associated with the relevant roles and the scope of each assignment.
Apply any other relevant policies or constraints and enforce the result.
Review and remove assignments when the work changes or ends.
The exact evaluation order and policy interactions are product specific. A role name alone is not evidence that an operation is allowed or denied. An identity might receive access through another role, inherited group membership, a resource policy or a separate access mechanism.
The essential parts of an RBAC design
Element | Meaning | Example |
|---|---|---|
Subject | Person or service requesting access | Support engineer or backup service |
Role | Named collection of responsibilities and permissions | Support viewer |
Permission | Allowed action on a resource | Read service status |
Scope | Resources covered by an assignment | One customer account or one project |
These are conceptual examples. The precise granularity a platform supports varies. Some products expose roles and assignments directly; others use groups or policies to provide similar behaviour. A group is a collection of identities, while a role represents a set of permissions or a function. A group may be used to assign a role, but the two terms are not automatically interchangeable.
Assigned roles and active roles
In formal RBAC models, a user may be authorised for several roles but activate only some in a session. That distinction can reduce the privileges used for a particular task. Not every product implements session activation in the same way, so check its documentation rather than assuming that an assigned role is inactive until selected.
Role hierarchies
A hierarchy can let a more senior or broader role inherit permissions from another role. For instance, an operations manager role might include the permissions of an operations viewer role plus selected management actions. This can reduce duplication, but a change to an inherited role may affect more people than expected. Review the complete hierarchy and test the resulting effective access.
Separation of duties
Some workflows should not be controlled by one person alone. A business might separate the ability to create a payment from the ability to approve it. Static separation of duties can restrict conflicting role assignments. Dynamic separation of duties can restrict which roles are activated together in a session. A specific two-person approval rule may also need application-level checks on the transaction itself.
RBAC, authentication and authorisation
Authentication checks a claimed identity or credential. RBAC contributes to authorisation, which determines whether an identity may perform an action. Signing in successfully does not mean an account should have every available role.
RBAC does not replace strong authentication, secure credential handling or the checks made by the application. If an attacker obtains a privileged account's credentials, the attacker may be able to use its roles. Equally, a correctly authenticated user can still have excessive access if role assignments are wrong.
RBAC compared with other access models
Model | Main basis for a decision | Practical distinction |
|---|---|---|
RBAC | Roles and their permissions | Useful for recurring responsibilities |
ABAC | Attributes of subjects, resources, actions and sometimes context | Can express conditions such as device state or location |
DAC | Discretion of an owner or another authorised party | Access can be delegated within system limits |
MAC | Centrally enforced policy, often using classifications | Individual owners cannot freely override the policy |
These models are not necessarily competing products. A service can use roles for common permissions and additional attributes or conditions for sensitive actions. For example, a finance role may be necessary to approve a payment, while an application also checks the value, the specific transaction and whether another person created it.
An access control list is a list of entries used to apply access rules. It can appear in implementations that use roles or groups, and a network ACL may filter traffic using packet properties rather than identify a user's job role. Do not assume an ACL and an RBAC role perform the same function.
A practical example: a UK broadband support team
Imagine a small UK broadband support business with a customer portal and a separate network management platform. This is an illustrative design, not a description of a particular provider or tested product.
Role | Intended permissions | Boundary to verify |
|---|---|---|
Support viewer | Read connection status and case notes | Only assigned customers; no configuration changes |
Support operator | Add case notes and request diagnostic checks | No billing changes or router administration |
Network administrator | Change authorised network configuration | Limited infrastructure scope and controlled elevation |
Suppose Alex is assigned Support viewer for Customer A. A request to read Customer A's status is allowed if the platform's policy and other checks permit it. A request to modify a router configuration should be denied. A request for Customer B's record should also be denied unless a separate assignment or policy permits it.
This example exposes a common gap: a role can say what kind of action is allowed without deciding which individual customer record it applies to. The application must enforce the customer or tenant boundary as well as the role. A hidden button is not a security control if the same operation remains available through a direct request.
If Alex moves to network operations, add the new access only when required and remove the old assignment if it is no longer justified. Check inherited groups, cached credentials and existing sessions. Changing one visible role does not prove every access path has been removed.
Why scope and effective permissions matter
The same role can be safe at one scope and excessive at another. A viewer assignment for a single project is different from the same assignment across an entire organisation. Multiple assignments can also overlap. A narrowly scoped viewer role does not necessarily cancel a broader administrator role.
In Microsoft's Azure RBAC model, an assignment combines a security principal, role definition and scope. Azure describes role grants as additive, while separate deny assignments and conditions can affect the decision. Its rules are an example of one implementation, not a universal rule for every RBAC system.
When troubleshooting, trace all applicable assignments, including group membership and inheritance. Look for other policies and alternative paths to the same resource. Confirm the exact action and resource, because permission to manage a service does not automatically mean permission to read the data held by it.
RBAC in networks, cloud and Kubernetes
On a router, switch or management platform, roles may separate read-only monitoring from configuration changes. Their actual permissions depend on the vendor and software version. Network reachability remains a separate layer: a role in an application does not create a route through a firewall, and a permitted network connection does not grant administrative rights within the application.
In cloud platforms, roles can apply to resource hierarchies, projects or individual services. Review both management operations and data access, and avoid assuming a built-in role has the same meaning across different providers.
In Kubernetes, a Role or ClusterRole defines permissions and a binding grants them to subjects. A RoleBinding grants permissions in a namespace and can refer to a ClusterRole; a ClusterRoleBinding grants cluster-wide access. The Kubernetes RBAC documentation states that its RBAC permissions are additive and have no deny rules. Other Kubernetes authorisers and controls can also affect a request, so do not generalise that statement to the entire security system.
Service accounts need the same attention as human accounts. Restrict their permissions to the workload's actual needs and avoid broad wildcard grants. Permission to create or modify workloads can have indirect security consequences, so a role review must consider what actions enable, not just their labels.
How to design and maintain roles
Start with tasks and resources rather than copying the organisation chart. A job title may cover several activities, and people with the same title may need access to different customers or environments. Define the smallest practical set of permissions for each role and a clear owner who can approve and review it.
List sensitive resources and the actions people and services need to perform.
Group recurring permissions into roles with clear names and descriptions.
Define the scope of each assignment and document any conflicting duties.
Assign roles through a controlled process, with an owner and an end date where appropriate.
Test allowed and denied actions using representative accounts and non-sensitive data.
Review effective access after changes, role transfers and departures.
Least privilege is a design objective, not something a role automatically guarantees. A role called Viewer can still expose sensitive data, and an Administrator role can be far broader than the task requires. Check the actual permissions, inherited assignments, scope and indirect capabilities.
Provide a protected emergency access process for identity or administration failures. Limit standing privileged access where possible, monitor its use and test the recovery procedure. Avoid removing access remotely in a way that locks out the only administrator.
Common RBAC problems
Role explosion: too many narrowly tailored roles make access difficult to understand and maintain.
Privilege creep: users retain old roles after changing responsibilities.
Broad scope: a necessary role is assigned across more resources than the task requires.
Unchecked inheritance: a group or parent role quietly supplies additional permissions.
Missing object checks: a role permits a function, but the application does not verify the particular record.
Stale access: a token, session or cache continues to work after an assignment changes.
Unmanaged service accounts: automation retains permissions after the original workload has changed.
A denied test is evidence for that request and context, not proof that every route is protected. Test direct requests, different resource scopes, overlapping assignments and revocation timing where authorised. Keep records of expected outcomes and investigate unexpected access.
Key takeaway
RBAC makes permissions easier to organise around real work, but a role is only as safe as its contents, assignments and scope. Trace who receives each role, what actions it permits and which resources it reaches. Test those decisions and remove access when it is no longer needed.
Frequently asked questions
What does RBAC stand for?
RBAC stands for role based access control. It groups permissions into roles that can be assigned to users or other supported identities.
What is an RBAC role?
An RBAC role is a named collection of permissions or responsibilities used to control which actions an assigned identity may perform.
Is RBAC the same as a user group?
No. A group collects identities; a role represents permissions or a function. A system can use a group to assign a role, but the concepts are distinct.
Can a user have more than one role?
Yes, many implementations allow multiple role assignments. The effective access depends on the product's rules, scopes, inheritance and any other applicable policies.
Does RBAC guarantee least privilege?
No. Roles can be overbroad or assigned at the wrong scope. Least privilege requires careful role design, assignment, testing and review.
What is the difference between RBAC and ABAC?
RBAC bases permissions on roles. ABAC evaluates attributes of the subject, resource, action and sometimes environment. Systems can combine both approaches.
Does removing a role immediately remove all access?
Not necessarily. Another assignment may still grant access, and sessions, tokens or caches may remain valid for a time. Test the behaviour of the specific system.

