V5 Ultimate
Ultimate
PricingResourcesCompany
Start free trial
HomeGlossaryRBAC
Systems & integration · The complete guide

RBACRole-Based Access Control

In short

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).

Read the full summary

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.

3,200 words · ~15 min read
On this page
  1. 01The RBAC model
  2. 02RBAC vs ABAC vs ReBAC
  3. 03Separation of duties (SoD)
  4. 04Least privilege + minimum necessary
  5. 05Joiner / mover / leaver
  6. 06Training as a role guard
  7. 07V5 default role catalogue
  8. 08Common mistakes
  9. 09How V5 Ultimate handles RBAC
On this page · 9 sections
  1. 1The RBAC model
  2. 2RBAC vs ABAC vs ReBAC
  3. 3Separation of duties (SoD)
  4. 4Least privilege + minimum necessary
  5. 5Joiner / mover / leaver
  6. 6Training as a role guard
  7. 7V5 default role catalogue
  8. 8Common mistakes
  9. 9How V5 Ultimate handles RBAC
AI · Explain it for MY operation

How does RBAC apply to your shop floor?

Pick your industry and scale — Ask V5 rewrites the definition in your context, gives a worked example, and shows what V5 does on day one.

Your scale

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.
One-sentence summary

RBAC grants permissions to roles, assigns users to roles, and uses constraints (especially separation of duties) to enforce regulated-process integrity.

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

RBAC in V5

V5 Ultimate runs hierarchical + constrained RBAC server-side. The role catalogue above is the default; tenants can extend on Enterprise within the SoD constraints. Permissions land in PostgreSQL RLS policies — a role grants the right to call a server function, the RLS policy gates the row-level result, and the audit trail records the decision. Separation of duties for recipe approval and batch release is enforced in SQL, not just in TypeScript — a manually crafted API call from the preparer cannot bypass it. Training-record currency is checked at role-activation time and re-checked at every gated action — an operator whose required SOP is overdue is hard-blocked at the kiosk. Role assignments push through SCIM from the customer's IdP where present; a leaver disabled at the IdP loses every V5 role within seconds. Platform admin is gated by a hard-coded email allowlist in the is_platform_admin() SQL function and is never exposed to tenants.

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 + Professional plans, no — the default catalogue is fixed. On 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

  • NIST RBAC — ANSI INCITS 359-2004
  • NIST SP 800-162 — Attribute-Based Access Control (contrast)
  • 21 CFR Part 11.10(d) + 11.10(g) — Access + authority checks
  • ISO 13485:2016 §6.2 — Human resources / competence
  • AICPA Trust Services Criteria CC6 — Logical and Physical Access

Further reading

  • SSO / SAML
    Authentication that precedes RBAC authorisation.
  • 21 CFR Part 11
    The GxP regime RBAC supports.
  • Two-person e-signature
    RBAC ensures the two signers are distinct roles.
  • Training record
    RBAC gates: an untrained user cannot enter the role.
  • Audit trail
    Every RBAC decision lands in the audit log.
Software that covers RBAC
V5 Ultimate (21 CFR Part 11)
V5 Ultimate gives FDA-regulated manufacturers bound e-signatures, an audit trail, authority checks and printed-copy controls. An…

Explore this topic

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

Part 11 & data integrity
24 related entries

Electronic records, signatures, audit trail and ALCOA+ data-integrity principles.

21 CFR Part 11EU Annex 11E-signatureTwo-person e-signatureAudit trailALCOA+Data integrityCSVCSAGAMP 5IQ / OQ / PQURSFSDSDQPPQVMPAnnex 15Traceability MatrixSSO / SAMLSOC 2HIPAAChange controlDocument control
MES, WMS, ERP & QMS layer
15 related entries

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

MESWMSQMSERPLIMSWORoutingBOMTraining recordSOPSSO / SAMLDocument controlAudit managementCMMSAsset lifecycle management
Talk to us about RBAC

Want to see how RBAC could fit into your own records and workflows? Explore the related V5 pages or talk to our team about what applies to your operation.

Start free
Back to glossary
Inside V5
  • → 21 CFR Part 11 — signatures and audit history your team can validate.
Regulatory anchors
  • 21 CFR 11.10(d)
  • EU Annex 11 §12
Related terms
  • → SSO / SAML
  • → 21 CFR Part 11
  • → EU Annex 11
  • → E-signature
  • → Two-person e-signature
  • → Audit trail
  • → ALCOA+
  • → Data integrity
  • → CSV
  • → CSA
  • → GAMP 5
  • → IQ / OQ / PQ
  • → URS
  • → FS
  • → DS
  • → DQ
  • → PPQ

Next step

Try V5 with your own records, or ask a question first. Ask V5 opens with an editable question; nothing is sent until you choose to.

Start your free trial Browse all features
V5 Ultimate
Ultimate

Warehouse, quality and manufacturing software for regulated operations.

ProductIndustriesPricingResourcesSecurity & TrustCompanyLegal centre

© V5 Ultimate