Cybersecurity

Role-Based Access Control Explained

What role-based access control is, how to design roles that match real jobs, and how to keep them tidy as your company grows.

Most access problems start the same way. Someone needs to see a report, an administrator grants it to that one person, and nobody writes down why. Repeat that for a few years and no one can say who is able to do what.

Role-based access control, usually shortened to RBAC, replaces that habit with a simple rule: permissions belong to roles, and people are assigned to roles. This article explains how the model works and how to set it up without overcomplicating it.

The idea in one sentence

Instead of asking "what should this person be allowed to do?", RBAC asks "what does this job need to do?" and answers the question once for everyone who holds that job.

There are three building blocks:

  • Permissions are single actions, such as viewing salary data, approving leave or editing an invoice.
  • Roles are named bundles of permissions, such as Payroll Approver or Team Manager.
  • Assignments connect a person to one or more roles.

When a new payroll approver joins, you assign the role and you are done. When the job itself changes, you edit the role and everyone who holds it is updated together.

A worked example

Picture a company with a small HR team, several department managers and a finance lead. A sensible first set of roles for its HR system might look like this:

  • Employee: view own profile, apply for leave, download own payslips.
  • Team Manager: everything an employee can do, plus approve leave and view attendance for direct reports only.
  • HR Officer: create and edit employee records, manage leave balances, run attendance reports for the whole company.
  • Payroll Approver: view salary data and approve a payroll run, but not edit employee records.
  • System Administrator: manage roles and settings, without automatic access to salary figures.

Notice two details. The manager's access is limited by scope, not only by action: the same "approve leave" permission applies only to their own team. And the administrator is not all-powerful. Running the system and reading sensitive data are different jobs.

How to design your roles

You do not need a consultant or a large project to get started. A workable process looks like this:

  1. List the jobs, not the people. Write down the distinct functions that touch the system. Ignore names for now.
  2. List the sensitive actions. Anything involving pay, personal data, approvals, deletions or settings deserves its own permission.
  3. Match actions to jobs. For each job, mark only the actions it truly needs to do the work.
  4. Name roles after functions. "Payroll Approver" will still make sense in three years. "Priya's access" will not.
  5. Test with a real person. Assign the role to one person for a week and note everything they had to ask for. Adjust, then roll out.

Start with fewer roles than you think you need. It is easier to split a role later than to merge ten that nobody remembers the purpose of.

Separate the duties that should not sit together

Some actions are safe alone but risky in combination. The person who creates a vendor should not also approve payments to that vendor. The person who edits salary figures should not be the only one approving the payroll run.

This principle is called separation of duties. RBAC makes it practical because you can see the conflict on paper: if a single role, or a single person holding two roles, covers both halves of a sensitive process, you have found a gap to close.

In very small teams full separation is not always possible. In that case, keep the combination but add a second check, such as a monthly review of changes by the owner or a director.

Where RBAC goes wrong

The model is simple. The failures are mostly habits:

  • Role explosion. A new role is created for every exception until there are more roles than employees. Handle rare exceptions as time-limited grants instead.
  • The catch-all role. One broad role, often called Admin or Power User, is handed to anyone who complains. Soon it is the default.
  • Stacked roles. People who change jobs keep the old role and gain the new one. Remove before you add.
  • Undocumented roles. Each role should have a one-line description and a named owner who approves changes to it.

Keeping roles healthy

Roles drift as the business changes. Put a recurring review on the calendar and check three things: does every role still have an owner, does every person still need each role they hold, and has any role quietly gained permissions it should not have.

The review is far easier when the system records who changed a role and when. Our article on why audit logs matter explains what that record should contain.

What to ask of your software

Not every product supports RBAC well. Before you commit to a system, confirm that it lets you:

  • Create custom roles instead of choosing from two or three fixed ones.
  • Limit a role by scope, such as department, location or reporting line.
  • See, on one screen, every role a person holds and every person in a role.
  • Export that list for a review.

RBAC is not a product you buy once. It is a short list of well-named roles, kept honest by regular review. If you would like software with roles and audit logs built in, the team at Cognitell Technology is happy to talk it through.

Perfect solutions, tailored for you.

Tell us what you need and let's build what's next, together.