A hypothetical B2B SaaS analytics platform builds an employee offboarding system using SCIM provisioning from enterprise customer directories and OIDC authentication. Named system owner: the platform's engineering director. Named proposer: delegated tenant admin at the customer organization. Named independent approver: scoped security owner at the customer organization. All targets are hypothetical and illustrative.
Prelaunch fixtures.
saas_cur_1: SCIM PATCH setting user active=false, SCIM resource version v7 with If-Match where supported, tenant T-100
saas_cur_2: Deactivation draft prepared by delegated tenant admin, queued for security owner approval
saas_stale_1: SCIM PATCH referencing resource version v3 when current is v7 (stale version)
saas_unknown_1: SCIM PATCH with unrecognized resource version format (unknown version)
saas_inelig_1: SCIM PATCH targeting a user already deactivated (active=false)
saas_unauth_role_1: Marketing user attempting to approve a deactivation (requires security owner role)
saas_unauth_tenant_1: Admin from Tenant T-200 attempting to deactivate a user in Tenant T-100
saas_unavail_1: Identity provider SCIM endpoint temporarily unreachable for version verification
Disjoint held-out setup. 11 synthetic offboarding records divided into two disjoint cohorts. Positive cohort (5 records: OFF-001 through OFF-005): valid SCIM PATCH with current resource version, authorized delegated tenant admin, qualified security owner approval, OIDC sessions active, entitlements granted. Negative cohort (6 records: OFF-006 through OFF-011): each tests one denial condition (stale version, unknown version, already deactivated, wrong role, wrong tenant, IdP unavailable). Each negative fixture has a distinct ID and measurable no unauthorized effect. The held-out total (11: 5 positive and 6 negative) excludes the named recovery-only revocation fixture (OFF-101) and private-restore test fixture. Training and tuning data separated from held-out fixtures; held-out cohorts are never used to train or tune system behavior. All are hypothetical fixture targets.
Allowed workflow (saas_1). Positive cohort OFF-001 arrives as SCIM PATCH from enterprise IdP for Tenant T-100. The SCIM request originates from an authorized IdP, but the application's approval of deactivation effects is a separate decision. Integration verifies SCIM resource version (v7, with If-Match where the implementation supports it). Delegated tenant admin at Tenant T-100 (current delegation grant verified) reviews deactivation and prepares draft with current tenant/user/version. Scoped security owner (current role grant verified) reviews exact user, tenant and SCIM version. Approves. System sets user active=false in tenant directory. The application then independently enforces four separate revocations: (a) invalidate all active sessions for the user and prevent new sessions under the deprovisioned user (verified independently by reading session store), (b) deny application access for the user (verified by attempting test login), (c) revoke all entitlement and API grants (verified by reading entitlement store: zero active grants), (d) clear any queued operations for the user (verified by reading operation queue). These are application-enforced actions, not OIDC Core capabilities. Records deactivation in write-once log. 5 of 5 positive records deactivated with confirmed four-part revocation. Test acceptance targets.
Denied: stale version (saas_2a). Fixture saas_stale_1 / negative OFF-006: SCIM PATCH references resource version v3 but current tenant directory shows v7. Version mismatch detected. Deactivation deferred pending current version. 0 deactivations on stale versions.
Denied: unknown version (saas_2b). Fixture saas_unknown_1 / negative OFF-007: SCIM PATCH contains unrecognized version format. System cannot verify currency. Deactivation held for investigation. 0 deactivations without verified version.
Denied: already inactive but sessions present (saas_2c). Fixture saas_inelig_1 / negative OFF-008: user already has active=false in tenant directory, but active sessions and entitlement grants still exist (partial prior deactivation). Setting active=false alone is partial. System individually checks: directory state (already inactive), application sessions (still valid: must deny), entitlement/API grants (still active: must revoke), queued operations (still pending: must clear). No duplicate deactivation of directory state, but application must complete the four-part revocation. If all four are already revoked, no action. 0 redundant directory deactivations; incomplete revocations completed. Test acceptance target.
Denied: unauthorized role (saas_2d). Fixture saas_unauth_role_1 / negative OFF-009: marketing user attempts deactivation approval. System enforces role check: approval requires scoped security owner role. 0 approvals by unauthorized roles.
Denied: cross-tenant (saas_2e). Fixture saas_unauth_tenant_1 / negative OFF-010: admin from Tenant T-200 attempts action on Tenant T-100 user. System enforces tenant isolation. 0 cross-tenant deactivations.
Denied: authority unavailable (saas_2f). Fixture saas_unavail_1 / negative OFF-011: IdP SCIM endpoint unreachable for version verification. Deactivation queued but not executed without current version confirmation. 0 deactivations without verified authority (fail closed).
Idempotency and duplicate detection (saas_3). Operation A: delegated admin prepares deactivation for target OFF-001, security owner approves, operation key op:saas_A_001, recorded. Only after security owner approval: user set active=false. Application independently enforces four revocations: (a) invalidates all sessions for the user (verified by reading app session store: zero valid sessions, no inflight session operations, new session attempt denied for the deprovisioned user), (b) revokes entitlements and API grants (verified by reading entitlement store: zero active grants), (c) clears queued operations (verified by reading operation queue: zero pending for this user), (d) confirms directory deactivation (verified by reading tenant directory: active=false). Replayed operation A with same key op:saas_A_001: rejected, 0 duplicate deactivations, prior log entry preserved. Operation B: admin prepares deactivation for distinct target OFF-002, security owner approves, key op:saas_B_002. User set active=false. Application independently verifies four revocations for OFF-002: sessions (zero valid, new denied), entitlements (zero active), queue (clear), directory (inactive). 2 of 3 proposals applied (A and B), 0 duplicate business effects. Illustrative pass targets, not observed results.
Ambiguous first response (saas_3b). Fixture saas_ambig_1: admin submits deactivation for OFF-003, key op:saas_A_003. Network interruption. Before any repeat: (1) read durable deactivation log for key op:saas_A_003; (2) independently read current tenant directory (active state); (3) read application session store (valid sessions); (4) read entitlement store (active grants); (5) read operation queue (pending/inflight); (6) verify current admin delegation grant and security owner role.
Log found, directory inactive, sessions denied, entitlements revoked, queue clear: complete, no repeat. Log found, directory inactive but sessions or grants persist: do not repeat directory change. Before any remaining application-level revocation: independently read directory state, app session store (including new-session denial state), entitlement and API grant store, and operation queue; verify current tenant-scoped executor permission and current affected store/user/SCIM versions; confirm each missing effect is independently absent, not pending and not inflight; obtain fresh original security-owner approval. If pending, unknown or revoked: hold, zero writes; preserve committed effects, no reset or directory replay. Only then complete the remaining application-level revocations, preserving committed log and all already-committed effects. Log found, directory still active or any store disagrees: STOP. Engineering director investigates. Log not found, directory inactive: effect without log. Reconcile without replay. Log not found, directory still active but any application-level effect already applied (sessions invalidated, entitlements revoked or queue cleared): do not repeat. Pending or inflight partial state never implies that the pending part can trigger a corrective write. A separately gated app-only repair requires: independently read directory state, app session store (including new-session denial state), entitlement and API grant store, and operation queue; verify current tenant-scoped executor permission and current affected store/user/SCIM versions; confirm each missing effect is independently absent, not pending and not inflight; obtain fresh original security-owner approval. If pending, unknown or revoked: hold, zero writes; preserve committed effects, no reset or directory replay. Only then may the repair complete remaining application-level revocations, preserving each already committed effect; no directory change without fresh IdP verification. Log not found, directory active AND app session store shows valid sessions AND entitlement store shows active grants AND operation queue shows no pending AND no inflight AND current admin delegation and security owner role verified AND exact tenant/user/SCIM version confirmed: only then resubmit with identical key after security owner approval. Admin delegation revoked or security owner role removed: fail closed. IdP, session store or any authority unavailable: hold for reconciliation. 0 duplicate deactivations. Test acceptance targets.
Deactivation logging and access control (saas_4). Write-once log captures: user resource ID, tenant ID, SCIM version, operator, decision, timestamp, session invalidation status, entitlement revocation status, queue clearance status. No raw employee names, email addresses or personal attributes. Scoped read restricted to security owner and compliance roles. Retention owner: scoped security owner. Retention purpose: offboarding audit trail. Retention period per tenant compliance requirements. Access restrictions: no bulk export without security owner approval. Training and tuning data separated from held-out test fixtures.
Revoked delegation before reconnect (saas_5a). Fixture saas_revoked_1: delegated admin queued deactivation for OFF-101 with key op:saas_R_101 while Tenant T-100 delegation was current and security owner had approved the draft. Before deactivation completed, security owner (named revoker) revoked admin's Tenant T-100 delegation. On delayed result/reconnect: system reads current delegation grant: absent for Tenant T-100. Queries pending operation queue: op:saas_R_101 present but not committed. Reads tenant directory: OFF-101 still active. Reads session store: no invalidations for OFF-101. Reads entitlement store: no revocations for OFF-101. Reads committed effects from prior deactivations (OFF-001 through OFF-003): preserved, no modification. Fail closed: no deactivation, no session invalidation, no entitlement change, no replay. 0 effects after revoked delegation. Test acceptance target.
Staged restore (saas_5b). After IdP connectivity restored: stage the prior stable version privately with no real writes to tenant directory, session store, entitlement store or production queues. Named fixture saas_restore_1: queued SCIM PATCH for user U-505 at Tenant T-100, key op:saas_R_505, security owner role grant current, SCIM resource version v9. In private staging: (a) test authorized route: verify engineering director authority accepted, current admin delegation grant valid, security owner role grant active, SCIM version v9 current against IdP, and each independently confirmed deactivation effect from before the outage (directory state, session store, entitlement store, queue clearance) is still present and consistent; (b) test revoked/denied route: admin whose delegation was revoked during outage attempts to approve a queued deactivation and system denies (zero approvals after revoked delegation, revoked access never resurrected). Reconcile exact queued SCIM operations against current IdP directory state and committed deactivation log. Preserve each independently committed effect: already-deactivated users and revoked sessions from manual fallback preserved. Require two named signoffs: engineering director verifies data integrity, security owner verifies offboarding state correctness. Both approve before production restore. Named manual fallback during IdP outage: security owner records offboarding requests with user ID, tenant, request type and approver signature; holds all deactivation commits; reconciles upon restore. Named fallback owner: engineering director; queue reconciliation and two-role restart.
Tablet and keyboard access plan (saas_6). On iPad 10th generation at 820 by 1180, delegated tenant admin attempts 3 tasks: (1) review offboarding queue (pass: fits portrait viewport, 0 overflow; fail: queue truncated; error: queue loads but session-status column hidden), (2) open user detail with SCIM version, session status and entitlements (pass: scrollable with complete four-part revocation status; fail: detail data hidden; error: detail opens but entitlement count missing), (3) tap Submit for Security Owner Review (pass: button visible, draft submitted, not deactivation committed; fail: button unreachable; error: submit fires but no confirmation feedback). On desktop at 1280 by 800, keyboard-only security owner attempts 3 tasks: (1) navigate queue with arrows (pass: visible focus ring; fail: no indicator; error: focus ring skips rows), (2) open detail with Enter (pass: focus to detail panel; fail: nothing opens; error: panel opens, focus stays on list), (3) approve or defer with keyboard (pass: dropdown accessible, announced; fail: inaccessible; error: approval deactivates directory without showing session/entitlement status). Residual risk: if SCIM version changes between admin draft and security owner approval, the stale-version check may show a transient error that clears on page refresh, causing the security owner to approve a retry instead of investigating. All outcomes are test acceptance targets. Test plan; results not claimed.
This is a hypothetical scenario for illustration. Actual scope, timeline and cost depend on your requirements.