# Role-Based Access Control (RBAC)

> Each role, like admin or editor, gets a set of rights. Then people get roles.

**Field:** Software Development  
**Category:** Auth  
**Also known as:** RBAC, User Roles, Roles and Permissions

## Think of it like

Think of it like badges at a school. Teachers, pupils and guests can each go to different rooms.

## Definition

Role-based access control gives rights to roles, then gives roles to people. A role might be admin, editor or viewer. Each role has a list of things it may do, like edit posts or delete users. When someone changes jobs, you change their role, not dozens of rights. Most business apps work this way.

## Example

Lucy's blog has three roles. Writers can draft posts, editors can publish them, and only the admin can add new users.

## Why it matters

It keeps permissions tidy as a team grows. Hundreds of people can be managed with a handful of roles.

## Common mistake

Giving everyone the admin role to save time. Then one stolen admin login can wreck it all.

## Three principles

- **Permissions to roles.** Roles to people.
- **Few roles.** Admin, editor, viewer.
- **Change the role.** Not each permission.

## Related terms

- [Authorization](https://learn.benibix.com/term/development/authorization)
- [Principle of Least Privilege](https://learn.benibix.com/term/development/principle-of-least-privilege)
- [Authentication](https://learn.benibix.com/term/development/authentication)
- [Single Sign-On (SSO)](https://learn.benibix.com/term/development/single-sign-on)
- [Data Access Control](https://learn.benibix.com/term/data/data-access-control)
- [Privileged Access Management (PAM)](https://learn.benibix.com/term/development/privileged-access-management)

## Told apart from

- [Privileged Access Management vs RBAC](https://learn.benibix.com/compare/privileged-access-management-vs-rbac): People think giving someone the admin role is the same as managing admin access, and it is not. RBAC decides which rights a role has. PAM decides when those rights are used, for how long, and who watches. With RBAC alone, an admin is an admin all day. With PAM, the power is lent for one job and then taken back.

---

Source: https://learn.benibix.com/term/development/role-based-access-control
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
