Skip to content

Access Control, Roles & Entra ID OIDC

Perlite enforces zero-trust deny-by-default authorization across API controllers, state transitions, sensitive field unsealing, and visual screens. Permissions are authored centrally in Studio, tested against live Microsoft Entra ID / OIDC claims before identity cutover, and simulated directly inside screen previews.


1. Two-Dimensional RBAC Matrix Studio & Access Simulator

Open Object Browser → Architecture & Integration → Roles (🛡️) and click Matrix Studio to launch the Role-Based Access Control (RBAC) Studio. Every domain entity and custom action sits on rows grouped by business capability, while workspace roles form columns across a two-dimensional permission grid:

  • Deny-by-Default Evaluation: Access requires an explicit entity/action permission (such as WorkOrder.create, WorkOrder.transition.*, or wildcard Customer.*). Wildcard *.* grants unrestricted administrative control.
  • Capability Groups vs Flat A-Z List: Switch between Capability Groups (showing domain capabilities like CUSTOMER & SLA CONTRACTS and TRIAGE & DISPATCH SCHEDULING) and Flat A-Z List for cross-domain auditing.
  • Sensitivity & Action Columns: Entities declaring classified attributes (siteAccessPin, primaryContactEmail, presentingComplaint, clinicalSummary) display per-role Masked or Reveal PII/ePHI pills alongside CRUD checkboxes (R C U D) and workflow transition toggles (AssignTechnician, DepartToSite, ArriveOnSite, CompleteWorkOrder).
  • Inline Access Simulator: Toggle Access Simulator in the header bar, pick any Role, Entity, and Action (for example ComplianceAuditor + Customer + read (GET)), and inspect the exact HTTP outcome and matching rule (✓ ALLOWED (200) — Matched: *.read or 403 Forbidden).
Role-Based Access Control Studio showing capability-grouped permission matrix, Masked vs Reveal PII/ePHI toggles, workflow action pills, and inline Access Simulator

2D RBAC Matrix Studio grouped by capability with per-role CRUD toggles, workflow actions, Masked vs Reveal PII/ePHI indicators, and the live Access Simulator bar.


2. Microsoft Entra ID / OIDC Token Lab & Azure Portal appRoles

Click Entra ID / OIDC Lab in the RBAC Studio toolbar to validate external identity federation prior to production deployment:

  1. 1. Simulate & Inspect Entra JWT: Pick a target Persona Role and Entra Claim Emission Scenario (groups GUID array or roles claim value), then click ⚡ Mint RS256 Entra v2.0 Token & Dry-Run. Perlite signs a full RS256 v2.0 bearer JWT, runs signature and claim-to-role resolution (Client Environment Readiness Report), and tabulates effective CRUD and unsealing rights across every entity.
  2. 2. External IdP Group & Role Mappings: Configure each role’s externalMappings.entraGroupIds UUIDs and externalMappings.idpRoles values side by side, plus inspect Group Overage handling when large directory tokens exceed embedded group limits.
  3. 3. Azure Portal App Manifest (appRoles): Export deterministic appRoles JSON ready to paste into an Azure App Registration manifest so external directory roles align cleanly with compiled roles.json and entra-app-roles.manifest.json.
Microsoft Entra ID OIDC Token Lab modal showing minted RS256 JWT, Claim-to-Role resolution for OperationsManager, and per-entity effective permissions table

Entra ID / OIDC Token Lab minting and verifying an RS256 token mapped by Group GUID to OperationsManager with live effective permission checks.


3. Live Role Simulation & Field Masking in Screen Stitcher

Permission policies also flow straight into UI verification inside Screen Stitcher Studio:

  1. Open any workspace in Preview / Runtime Mode and choose a role from the 🛡️ Role dropdown on the Studio Header Bar (for example 🛡️ Role: Dispatcher).
  2. Permission badges update immediately beside the selector (✓R ✓C ✓U ✗D ✗PII in green and red), indicating permitted CRUD verbs and whether sensitive fields unseal or mask for that role.
  3. Restricted mutations surface inline authorization feedback right on the canvas so UI flows and backend @RequirePermission guards remain verified together before publishing.
Screen Stitcher Studio simulating Dispatcher role with live green R C U and red D PII permission badges in the header bar

Screen Stitcher header simulating Dispatcher with instant CRUD and PII/ePHI permission badges alongside live dispatch data.


4. Guided Example — Authorization Policies & Entra OIDC Manifests

Security & Operations · Guide 1 of 5
Zero-Trust Role Matrix, Entra Group/Role Mappings & Screen Role Simulation
Previously in this build: Operations entities (Customer, FieldAsset, Technician, WorkOrder) and dispatch screens are modeled with state machines and workflow actions.
✅ Checkpoint:Five Field Ops roles map cleanly to Entra Group GUIDs and idpRoles, while Dispatcher masks confidential customer PINs and blocks deletion.
Primary TrackConfigure five dispatch roles (SuperAdmin, OperationsManager, Dispatcher, FieldTechnician, ComplianceAuditor), verify Entra Group GUID resolution for Dispatcher, and simulate Dispatcher permissions on FieldDispatchCommandCenter.
  1. Inspect Role Capabilities in RBAC Matrix Studio: Open Object Browser → Roles → Matrix Studio and verify OperationsManager holds Customer.* (including Reveal PII/ePHI) while Dispatcher receives explicit WorkOrder.read/create/update and WorkOrder.transition.* without Customer.reveal_sensitive or WorkOrder.delete.
  2. Test Entra Group GUID Claim Resolution: Open Entra ID / OIDC Lab, select OperationsManager, mint an RS256 token carrying group GUID 8a2f4b10-77c3-4d91-b210-110022003301, and confirm Claim-to-Role Resolution grants full CRUD and unmasked PII access.
  3. Simulate Dispatcher on FieldDispatchCommandCenter: Open FieldDispatchCommandCenter in Preview Mode, switch 🛡️ Role to Dispatcher, and verify the header displays ✓R ✓C ✓U ✗D ✗PII.
Field Ops capability-grouped role matrix in Studio.
Dispatcher live simulation inside Screen Stitcher.