Rivane

Accounting
made smart

ERP Use CasesTier 2Published June 17, 2026

Role-Based Access Control with Segregation of Duties Enforcement

Role-Based Access Control with Segregation of Duties Enforcement for US and UK finance teams: ERP requirements, controls, audit evidence, data model, APIs, state transitions, and implementation checks.

Security & Identity - RBAC / SoD is where ERP discipline either begins or breaks.

Role-Based Access Control with Segregation of Duties Enforcement looks operational from far away. In a real finance team, it is a chain of assertions: the right actor started the work, the required records existed, the control policy was applied, the state change was preserved, and the outcome can be explained later without rebuilding the transaction from emails and spreadsheets.

The expected business outcome is specific: Zero unauthorized transactions due to role conflict; external auditors certify SoD compliance without manual sampling; role provisioning time reduced from days to minutes.

The control flow a finance team actually needs.

Workflow map showing control steps, exceptions, and evidence for this ERP process.Role Definitions...Start conditionSoD Conflict Mat...Required checksJWT Access Token...Owner and SLAFGA And OPA Poli...System updateAudit Log Entry ...Exception handlingAudit packetEvidence trailException loopSecurity & Identity - RBAC / SoD should preserve every override and rejection.
Workflow map for this ERP process, including exception handling and audit evidence.

Step 1

Role Definitions Fine-Grained...

Step 2

SoD Conflict Matrix Is Configurable And...

Step 3

JWT Access Tokens Expire Within 15 Minutes

Step 4

FGA And OPA Policy Evaluation Be...

Step 5

Audit Log Entry Created For Every...

The ERP surface involved.

Module

Security & Identity - RBAC / SoD

Actors

System Administrator, Security Officer, Auditor, All End-Users

Tier

Tier 2

Finance area

Platform, Integration, Security, Administration & Analytics

Region lens

US and UK finance teams

Publication date

June 17, 2026

Role definitions support fine-grained action-level permissions (create, read, update, delete, approve, export, admin); SoD conflict matrix is configurable and system-enforced at assignment time, not only at runtime; JWT access tokens expire within 15 minutes; FGA and OPA policy evaluation must be fail-closed (503 on policy engine unavailability, never pass-through); audit log entry created for every access-denied event with actor, resource, action, and timestamp; role assignment changes take effect within one token refresh cycle (≤15 min); system must handle ≥500 concurrent role evaluations per second at p99 ≤50 ms.

US and UK teams have different compliance hooks, but the same control problem.

US teams usually care about clean evidence for audit support, vendor records, payment controls, tax reporting, and management review. UK teams usually care about VAT-ready records, approval evidence, digital-record discipline, and traceable postings. The country-specific details differ, but the operating pattern is the same: the ERP needs controlled records, explicit ownership, defensible state changes, and evidence that survives beyond the person who completed the task.

The control matrix.

Control areaRequirementAcceptance proof
Control 1Role definitions support fine-grained action-level permissions (create, read, update, delete, approve, export, adminGiven roles (AP Clerk, AP Approver, GL Accountant, CFO) defined with SoD conflict matrix
Control 2SoD conflict matrix is configurable and system-enforced at assignment time, not only at runtimewhen an admin attempts to assign both bill-creator and bill-approver to the same user, then the system rejects the assignment with 409 CONFLICT and an error identifying the conflicting roles
Control 3JWT access tokens expire within 15 minuteswhen a user with only AP Clerk role attempts to approve a bill, then the request is rejected with 403 and error code PERMISSION_DENIED
Control 4FGA and OPA policy evaluation must be fail-closed (503 on policy engine unavailability, never pass-throughwhen a policy engine is unavailable, then all requests return 503 (fail-closed, not pass-through).
Control 5audit log entry created for every access-denied event with actor, resource, action, and timestampZero unauthorized transactions due to role conflict; external auditors certify SoD compliance without manual sampling; role provisioning time reduced from days to minutes.
Control 6role assignment changes take effect within one token refresh cycle (≤15 minZero unauthorized transactions due to role conflict; external auditors certify SoD compliance without manual sampling; role provisioning time reduced from days to minutes.

Audit evidence is a chain, not a folder.

Evidence layerWhat should be preserved
Business event
Administrator defines roles (e.g., AP Clerk, AP Approver, GL Accountant, CFO) with explicit permission sets scoped to modules, actions, and data ranges. SoD ruleset prevents assigning conflicting roles to the same user (e.g., bill creator + bill approver). On every login the JWT is minted with current role claims;
the 4-layer pipeline (JWT → FGA → OPA → SQL) enforces permissions on every request. Violations are blocked with a 403 and written to the immutable audit log. Quarterly SoD conflict reports are generated for auditors.
Control rulesRole definitions support fine-grained action-level permissions (create, read, update, delete, approve, export, admin); SoD conflict matrix is configurable and system-enforced at assignment time, not only at runtime; JWT access tokens expire within 15 minutes; FGA and OPA policy evaluation must be fail-closed (503 on policy engine unavailability, never pass-through); audit log entry created for every access-denied event with actor, resource, action, and timestamp; role assignment changes take effect within one token refresh cycle (≤15 min); system must handle ≥500 concurrent role evaluations per second at p99 ≤50 ms.
Acceptance proofGiven roles (AP Clerk, AP Approver, GL Accountant, CFO) defined with SoD conflict matrix; when an admin attempts to assign both bill-creator and bill-approver to the same user, then the system rejects the assignment with 409 CONFLICT and an error identifying the conflicting roles; when a user with only AP Clerk role attempts to approve a bill, then the request is rejected with 403 and error code PERMISSION_DENIED; when a policy engine is unavailable, then all requests return 503 (fail-closed, not pass-through).
Data record
role { role_id: string, org_id: string, name: string, permissions: string[], external_id: string };
user_role_assignment { user_id: string, role_id: string, entity_id: string, assigned_at: timestamp, assigned_by: string };
sod_conflict_rule { rule_id: string, org_id: string, role_a_id: string, role_b_id: string };
audit_event { event_id: string, actor_id: string, action: string, resource_type: string, resource_id: string, outcome: enum(ALLOWED,DENIED), timestamp: timestamp };
(reference, product may differ).
System event
POST /v1/roles { name, permissions[], org_id } -> 201 { role_id, name };
POST /v1/users/{user_id}/roles { role_id, entity_id } -> 201 or 409 on SoD conflict;
GET /v1/roles/{role_id};
POST /v1/sod-rules { role_a_id, role_b_id } -> 201;
GET /v1/audit-events?actor_id=&outcome=DENIED;
emits security.sod_violation_blocked event;
idempotent via external_id.
Lifecycle state
DRAFT -> ACTIVE;
terminal INACTIVE;
guard: SoD conflict check blocks ACTIVE assignment;
role assignment change takes effect within one JWT refresh cycle (≤15 min);
policy engine unavailability returns 503 not pass-through.

The useful version of this workflow is not only fast. It is inspectable. A controller, auditor, or operator should be able to move from source event to system record to state transition to final business outcome without guessing.

Implementation contracts.

Reference data model

`role` { role_id: string, org_id: string, name: string, permissions: string[], external_id: string }; `user_role_assignment` { user_id: string, role_id: string, entity_id: string, assigned_at: timestamp, assigned_by: string }; `sod_conflict_rule` { rule_id: string, org_id: string, role_a_id: string, role_b_id: string }; `audit_event` { event_id: string, actor_id: string, action: string, resource_type: string, resource_id: string, outcome: enum(ALLOWED,DENIED), timestamp: timestamp }; (reference, product may differ).

API and events

`POST /v1/roles` { name, permissions[], org_id } -> 201 { role_id, name }; `POST /v1/users/{user_id}/roles` { role_id, entity_id } -> 201 or 409 on SoD conflict; `GET /v1/roles/{role_id}`; `POST /v1/sod-rules` { role_a_id, role_b_id } -> 201; `GET /v1/audit-events?actor_id=&outcome=DENIED`; emits `security.sod_violation_blocked` event; idempotent via `external_id`.

State transitions

`DRAFT -> ACTIVE`; terminal `INACTIVE`; guard: SoD conflict check blocks ACTIVE assignment; role assignment change takes effect within one JWT refresh cycle (≤15 min); policy engine unavailability returns 503 not pass-through.

Common implementation traps.

Treating the workflow as data entry

If the ERP only stores the final record, the team loses the decision trail that explains how the record became valid.

Hiding exception logic

Exceptions need owners, reason codes, and time stamps. A vague pending state is not a control.

Posting without recovery design

Retries, duplicate submissions, and partial failures must be explicit so the system does not create inconsistent records.

Skipping evidence design

A workflow that cannot produce evidence on demand will eventually push finance teams back into manual screenshots and spreadsheets.

Where Rivane fits.

Rivane is built for finance workflows where automation must stay tied to source documents, approvals, state transitions, ledger impact, reporting, and audit evidence. Use this guide as a checklist for evaluating whether an ERP workflow is merely digitized or actually controlled.

References and source basis.

These sources provide the standards, regulatory, or government context around the flow. They are included so the guide is useful to finance operators, auditors, and implementation teams, not only buyers reading software copy.

Back to ERP use cases