Systems & integration · The complete guide

RBACRole-Based Access Control

TL;DR

Role-Based Access Control (RBAC) is the authorisation model in which permissions are granted to roles, and users are assigned to roles — never permissions directly to users. The reference model is NIST RBAC (ANSI INCITS 359-2004). For regulated-manufacturing SaaS it is the operational expression of 21 CFR Part 11's segregation-of-duty expectations, ISO 13485 §6.2 competence requirements, ICH Q10 management oversight, and SOC 2 Common Criteria CC6 logical-access controls. In V5 Ultimate RBAC underpins every gated action — operator clock-in, dispense weighing, batch release, recipe approval, complaint sign-off.

Reviewed · By V5 Ultimate compliance team· 3,200 words · ~15 min read

01The RBAC model

NIST defines RBAC in four levels:

  • Core RBAC (RBAC0) — users, roles, permissions; user-role assignment; role-permission assignment; sessions.
  • Hierarchical RBAC (RBAC1) — roles inherit permissions from parent roles (Supervisor inherits Operator).
  • Constrained RBAC (RBAC2) — static and dynamic separation of duties (e.g. the user who prepared a batch cannot also approve it).
  • Symmetric / Combined RBAC (RBAC3) — both hierarchies and constraints.

02RBAC vs ABAC vs ReBAC

  • RBAC — permissions via role membership. Predictable, auditable, well-understood by auditors.
  • ABAC (NIST SP 800-162) — permissions evaluated dynamically against attributes of the user, resource, action and environment (e.g. allow read only if shift = day and site = US-1). Powerful but harder to audit; favoured by cloud-native authorisation engines (OPA, Cedar).
  • ReBAC (relationship-based, popularised by Google Zanzibar / SpiceDB / OpenFGA) — permissions derived from relationships in a graph (this user is the supervisor of the operator who owns this batch).

Most regulated-manufacturing systems run RBAC at the policy layer with ABAC-style attributes (site, shift, training valid until, MFA recency) added as guards. Pure ABAC is rare because auditors prefer the deterministic role-to-permission grid.

03Separation of duties (SoD)

SoD is the core constraint that makes RBAC regulated-grade. Two kinds:

  • Static SoD — a user cannot hold two mutually exclusive roles simultaneously (e.g. Preparer + Independent Reviewer for recipe approval).
  • Dynamic SoD — a user can hold two roles but cannot exercise both on the same record (e.g. the operator who logged a dispense step cannot also be the two-person reviewer of that same step).

Both 21 CFR 211.186 (recipe approval — two e-sigs, preparer + independent reviewer) and 21 CFR 211.188 (batch record review by Quality Unit) rely on SoD. In V5 the constraint is enforced server-side, not just in the UI — a manually crafted API call from the preparer cannot bypass it.

04Least privilege + minimum necessary

Two related principles every RBAC design should honour:

  • Least privilege — grant the minimum permissions required to perform the role's function. An operator role grants kiosk access, not admin UI access.
  • Minimum necessary (HIPAA term, applies more broadly) — when the role does have data access, the system surfaces only the records the user needs (this operator's work orders, this site's recipes, not the global tenant view).

05Joiner / mover / leaver

RBAC lives or dies on lifecycle:

  • Joiner — onboarding triggers role assignment, mandatory training, kiosk enrolment; access starts only after the training-record system flags competence as current.
  • Mover — promotion / lateral move triggers role removal + new role assignment + new training prerequisites; no role accumulation.
  • Leaver — termination triggers immediate role removal across all roles. SCIM from the IdP closes this loop within seconds; manual offboarding is the most common audit observation.

06Training as a role guard

ISO 13485 §6.2 + ICH Q10 + 21 CFR 211.25 require personnel to have the education, training and experience to perform their assigned functions. The practical implementation is to gate role activation on a valid, current training record:

  • Operator cannot start a task if assigned required SOPs are overdue or unacknowledged on the current effective version (V5 enforces this as a hard kiosk block).
  • Releaser cannot sign a batch if the batch-release SOP version they trained on is not the currently effective version.
  • Independent Reviewer must hold a competence record distinct from Preparer.

07V5 default role catalogue

V5 ships a small, opinionated default role catalogue; tenants can extend within the same SoD constraints:

  • Owner — billing + workspace lifecycle; cannot perform GxP actions without a separate operational role.
  • Quality Manager — recipe approval, batch release, deviation / CAPA sign-off, training assignment, document control.
  • Production Supervisor — work-order release, line clearance, operator scheduling, deviation triage.
  • Operator — kiosk-only; clock-in, dispense weighing, in-process checks; locked to /app/kiosk.
  • Maintenance / Engineering — asset records, calibration scheduling, change-control proposals.
  • Auditor (read-only) — full read across batch records, audit trail, validation pack; no write.
  • Controller — labor / overhead rates, COGS roll-up; no GxP actions.
  • Platform Admin — Lovable-internal allowlisted accounts only; not exposed to tenants.

08Common mistakes

  • Granting permissions directly to users — auditors and reviewers cannot reason about access.
  • Single "admin" mega-role that violates SoD by definition.
  • SoD enforced in UI only, bypassable via API.
  • No training-gate on role activation; operators run on expired SOP versions.
  • Leavers not removed promptly; old credentials remain valid for weeks.
  • Role hierarchy lets a Supervisor implicitly inherit Independent Reviewer rights — Static SoD violation.
  • Owner role used as everyday operational role — blast radius too large.
  • Role definitions drift between tenants without a documented role catalogue + change-control trail.

09How V5 Ultimate handles RBAC

Frequently asked questions

Q.Is RBAC enough for 21 CFR Part 11?+

RBAC handles authorisation. Part 11 also requires authentication (SSO + MFA), audit trail, e-signature meaning attribution, training records, system validation and more. RBAC is one essential piece of the Part 11 control set, not the whole.

Q.Can a single user hold multiple roles?+

Yes — RBAC allows it, subject to Static SoD constraints. A Quality Manager can also hold the Auditor read-only role; a Preparer cannot also hold the Independent Reviewer role for the same recipe class.

Q.Does V5 support ABAC?+

V5 layers attribute guards (site, shift, training currency, MFA recency, geographic IP) on top of RBAC role decisions, but the policy layer remains RBAC. Pure ABAC is harder for auditors to reason about and is not the V5 default.

Q.Can the customer customise the role catalogue?+

On Express + Pro plans, no — the default catalogue is fixed. On Validated Enterprise, yes — tenants can add roles within the same SoD constraints. Catalogue changes themselves go through V5's change-control workflow.

Q.What's the leaver SLA?+

Where SCIM is wired from the IdP, role removal propagates within seconds of the IdP disabling the account. Manual offboarding via the V5 admin UI takes effect immediately; the gap is the customer's offboarding-process latency, not V5.

Primary sources

Further reading

Explore this topic

RBAC sits inside 2 overlapping topic clusters in our glossary. Every neighbour is one click away.

MES, WMS, ERP & QMS layer
15 related entries

Where each shop-floor system fits and what it owns vs the ERP above it.

See RBAC working on a real shop floor

V5 Ultimate ships with the RBAC controls already wired in — audit trail, e-signatures, validation evidence. Free trial, no credit card, onboard in days, not months.

Language