aptdot-dev commited on
Commit
fd8a8b3
·
verified ·
1 Parent(s): a7a0155

Upload 7 files

Browse files

Initial upload v<version>

README.md ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc0-1.0
3
+ pretty_name: "Synthetic RBAC Users and Authorization Test Cases"
4
+ language:
5
+ - en
6
+ size_categories:
7
+ - n<1K
8
+ tags:
9
+ - rbac
10
+ - authorization
11
+ - access-control
12
+ - synthetic-data
13
+ - test-data
14
+ - json
15
+ - json-schema
16
+ configs:
17
+ - config_name: users
18
+ data_files: records-users.jsonl
19
+ default: true
20
+ - config_name: authorization_test_cases
21
+ data_files: records-authorization_test_cases.jsonl
22
+ - config_name: roles
23
+ data_files: records-roles.jsonl
24
+ - config_name: resources
25
+ data_files: records-resources.jsonl
26
+ ---
27
+ # Synthetic RBAC Users and Authorization Test Cases
28
+
29
+ 25 synthetic multi-tenant users, 6 roles with inheritance, 8 resources and 12 authorization test cases, each with the expected allow or deny decision and the reason.
30
+
31
+ Test authorization logic, policy engines and permission checks against known expected outcomes.
32
+
33
+ **Full guide and live preview: [www.aptdot.com/datasets/synthetic-rbac-users/](https://www.aptdot.com/datasets/synthetic-rbac-users/)**
34
+
35
+ | | |
36
+ | :--- | :--- |
37
+ | Version | 1.0.3 (2026-09-29) |
38
+ | License | CC0 1.0 (public domain) |
39
+ | JSON Schema | [`synthetic-rbac-users.schema.json`](https://www.aptdot.com/data/v1/synthetic-rbac-users.schema.json) (Draft 2020-12) |
40
+ | Source repository | [github.com/mkchd25/aptdot-datasets](https://github.com/mkchd25/aptdot-datasets) |
41
+ | Publisher | [Aptdot](https://www.aptdot.com) |
42
+
43
+ ## Files
44
+
45
+ | File | What it is |
46
+ | :--- | :--- |
47
+ | `synthetic-rbac-users.json` | The complete dataset, identical to the file on aptdot.com and GitHub |
48
+ | `synthetic-rbac-users.schema.json` | Its JSON Schema (Draft 2020-12) |
49
+ | `records-*.jsonl` | The main lists, one record per line, for the viewer and the `datasets` library |
50
+
51
+ ## Tables
52
+
53
+ | Table | Rows | File | Fields |
54
+ | :--- | ---: | :--- | :--- |
55
+ | `users` | 25 | `records-users.jsonl` | `id`, `uuid`, `email`, `org_id`, `org_role`, `workspace_roles`, `effective_permissions`, `denied_permissions`, ... |
56
+ | `authorization_test_cases` | 12 | `records-authorization_test_cases.jsonl` | `case_id`, `description`, `principal`, `action`, `resource`, `expected`, `reason` |
57
+ | `roles` | 6 | `records-roles.jsonl` | `role`, `inherits`, `permissions`, `description` |
58
+ | `resources` | 8 | `records-resources.jsonl` | `id`, `org_id`, `workspace_id`, `type`, `owner_id`, `sensitivity`, `data_residency` |
59
+
60
+ ## Load it
61
+
62
+ ```python
63
+ from datasets import load_dataset
64
+
65
+ rows = load_dataset("aptdot/synthetic-rbac-users", "users", split="train")
66
+ ```
67
+
68
+ Or use the complete JSON file as it is:
69
+
70
+ ```python
71
+ import json
72
+ from huggingface_hub import hf_hub_download
73
+
74
+ path = hf_hub_download("aptdot/synthetic-rbac-users", "synthetic-rbac-users.json", repo_type="dataset")
75
+ data = json.load(open(path, encoding="utf-8"))
76
+ ```
77
+
78
+ ## Check your own data against the schema
79
+
80
+ Paste your records and `synthetic-rbac-users.schema.json` into the free [JSON Schema Validator](https://www.aptdot.com/tools/json-schema-validator/). It runs in your
81
+ browser, uploads nothing and explains every problem in plain English with its line number.
82
+
83
+ ## Notes
84
+
85
+ - The `records-*.jsonl` files are generated from `synthetic-rbac-users.json`. If they ever disagree, `synthetic-rbac-users.json` is the reference.
86
+ - Versions match aptdot.com and GitHub. Changes are listed in the repository's [CHANGELOG](https://github.com/mkchd25/aptdot-datasets/blob/main/CHANGELOG.md).
87
+ - All people, organisations and products are invented for testing. Email addresses use `example.com`.
88
+
89
+ ## License
90
+
91
+ CC0 1.0 Universal: public domain. You can copy, change and use it for any purpose, including commercial use, without asking.
records-authorization_test_cases.jsonl ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"case_id": "tc_001", "description": "Global super admin performing unrestricted record read", "principal": "usr_001", "action": "data:records:read", "resource": "res_rec_001", "expected": "allow", "reason": "principal_has_super_admin_wildcard"}
2
+ {"case_id": "tc_002", "description": "Baseline editor writing to authorized production workspace", "principal": "usr_002", "action": "data:records:write", "resource": "res_rec_001", "expected": "allow", "reason": "workspace_editor_role_allows_write"}
3
+ {"case_id": "tc_003", "description": "Expired contractor attempting export on production workspace", "principal": "usr_014", "action": "data:records:export", "resource": "res_rec_001", "expected": "deny", "reason": "principal_temporal_access_expired"}
4
+ {"case_id": "tc_004", "description": "Separation-of-Duty conflict detection during approval action", "principal": "usr_015", "action": "finance:requests:approve", "resource": "res_fin_001", "expected": "deny", "reason": "separation_of_duty_policy_violation"}
5
+ {"case_id": "tc_005", "description": "MFA non-compliant administrator accessing critical security settings", "principal": "usr_016", "action": "security:settings:write", "resource": "res_sec_001", "expected": "deny", "reason": "mfa_enforcement_required_for_administrative_actions"}
6
+ {"case_id": "tc_006", "description": "Suspended user with active JWT session attempting record read", "principal": "usr_017", "action": "data:records:read", "resource": "res_rec_001", "expected": "deny", "reason": "account_suspended_session_must_be_revoked"}
7
+ {"case_id": "tc_007", "description": "Restricting workspace override demoting global admin to guest", "principal": "usr_018", "action": "data:records:write", "resource": "res_rec_001", "expected": "deny", "reason": "workspace_demotion_override_and_explicit_deny"}
8
+ {"case_id": "tc_008", "description": "Dormant administrator accessing audit telemetry after 90 days of inactivity", "principal": "usr_019", "action": "audit:events:read", "resource": "res_audit_001", "expected": "deny", "reason": "dormant_account_policy_requires_reauthorization"}
9
+ {"case_id": "tc_009", "description": "Expired JIT break-glass elevation attempting administrative bypass", "principal": "usr_020", "action": "data:records:write", "resource": "res_rec_001", "expected": "deny", "reason": "jit_elevation_window_expired"}
10
+ {"case_id": "tc_010", "description": "Cross-tenant identity accessing resources in an unassigned tenant", "principal": "usr_022", "action": "data:records:read", "resource": "res_rec_001", "expected": "deny", "reason": "cross_tenant_isolation_violation_org_mismatch"}
11
+ {"case_id": "tc_011", "description": "Pending invite user attempting resource access prior to activation", "principal": "usr_023", "action": "data:records:read", "resource": "res_rec_001", "expected": "deny", "reason": "account_status_pending_activation"}
12
+ {"case_id": "tc_012", "description": "Service account executing authorized automated staging runner task", "principal": "svc_024", "action": "data:records:write", "resource": "res_rec_002", "expected": "allow", "reason": "service_account_holds_explicit_workspace_editor_role"}
records-resources.jsonl ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {"id": "res_rec_001", "org_id": "org_enterprise_01", "workspace_id": "ws_prod_eu", "type": "data:records", "owner_id": "usr_003", "sensitivity": "confidential", "data_residency": "EU"}
2
+ {"id": "res_rec_002", "org_id": "org_enterprise_01", "workspace_id": "ws_staging", "type": "data:records", "owner_id": "usr_004", "sensitivity": "internal", "data_residency": "US"}
3
+ {"id": "res_rec_003", "org_id": "org_enterprise_02", "workspace_id": "ws_client_us", "type": "data:records", "owner_id": "usr_022", "sensitivity": "confidential", "data_residency": "US"}
4
+ {"id": "res_bill_001", "org_id": "org_enterprise_01", "workspace_id": null, "type": "org:billing", "owner_id": "usr_005", "sensitivity": "restricted", "data_residency": "US"}
5
+ {"id": "res_audit_001", "org_id": "org_enterprise_01", "workspace_id": null, "type": "audit:events", "owner_id": "system", "sensitivity": "restricted", "data_residency": "EU"}
6
+ {"id": "res_sec_001", "org_id": "org_enterprise_01", "workspace_id": null, "type": "security:settings", "owner_id": "usr_001", "sensitivity": "critical", "data_residency": "EU"}
7
+ {"id": "res_fin_001", "org_id": "org_enterprise_01", "workspace_id": null, "type": "finance:requests", "owner_id": "usr_005", "sensitivity": "restricted", "data_residency": "US"}
8
+ {"id": "res_infra_001", "org_id": "org_enterprise_01", "workspace_id": "ws_staging", "type": "infra:runners", "owner_id": "svc_024", "sensitivity": "internal", "data_residency": "US"}
records-roles.jsonl ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {"role": "super_admin", "inherits": ["workspace_editor", "billing_manager", "compliance_auditor"], "permissions": ["*:*:*"], "description": "Global administrator with unrestricted operational and administrative access."}
2
+ {"role": "workspace_editor", "inherits": ["member"], "permissions": ["data:records:read", "data:records:write", "data:records:export", "workspace:settings:read"], "description": "Operational read/write access to workspace data and settings."}
3
+ {"role": "compliance_auditor", "inherits": ["member"], "permissions": ["audit:events:read", "compliance:reports:export", "data:records:read"], "description": "Read-only access across compliance telemetry and system audit logs."}
4
+ {"role": "billing_manager", "inherits": ["member"], "permissions": ["org:billing:read", "org:billing:write", "org:invoices:export"], "description": "Financial and subscription management authority."}
5
+ {"role": "member", "inherits": [], "permissions": ["team:members:read", "data:records:read"], "description": "Baseline collaborator role with read access to shared resources."}
6
+ {"role": "guest", "inherits": [], "permissions": ["data:records:read"], "description": "Least-privilege external participant."}
records-users.jsonl ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"id": "usr_001", "uuid": "7a3f4e2b-8c1d-4a9f-9e6b-5c0d2f7e9a01", "email": "alex.admin@example.com", "org_id": "org_enterprise_01", "org_role": "super_admin", "workspace_roles": {}, "effective_permissions": ["*:*:*"], "denied_permissions": [], "status": "active", "employment_type": "full_time", "access_expires_at": null, "last_login_at": "2026-09-27T18:40:00Z", "mfa": {"enforced": true, "enrolled": true, "method": "hardware_key"}, "attributes": {"department": "Security", "geo_region": "EU-Central", "ip_cidr": "198.51.100.0/24", "network_trust": "corporate", "device_posture": "managed_compliant", "risk_score": 0}, "scenario_id": "baseline_super_admin"}
2
+ {"id": "usr_002", "uuid": "8b4a5f3c-9d2e-4b0a-8f7c-6d1e3a8f0b02", "email": "sarah.lead@example.com", "org_id": "org_enterprise_01", "org_role": "workspace_editor", "workspace_roles": {"ws_prod_eu": "workspace_editor", "ws_staging": "workspace_editor"}, "effective_permissions": ["data:records:read", "data:records:write", "data:records:export", "workspace:settings:read", "team:members:read"], "denied_permissions": [], "status": "active", "employment_type": "full_time", "access_expires_at": null, "last_login_at": "2026-09-28T07:15:00Z", "mfa": {"enforced": true, "enrolled": true, "method": "totp"}, "attributes": {"department": "Engineering", "geo_region": "EU-Central", "ip_cidr": "198.51.100.0/24", "network_trust": "corporate", "device_posture": "managed_compliant", "risk_score": 5}, "scenario_id": "baseline_engineering_lead"}
3
+ {"id": "usr_003", "uuid": "9c5b6a4d-0e3f-4c1b-b08d-7e2f4b9a1c03", "email": "marcus.dev@example.com", "org_id": "org_enterprise_01", "org_role": "member", "workspace_roles": {"ws_prod_eu": "workspace_editor", "ws_staging": "workspace_editor"}, "effective_permissions": ["data:records:read", "data:records:write", "data:records:export", "workspace:settings:read", "team:members:read"], "denied_permissions": [], "status": "active", "employment_type": "full_time", "access_expires_at": null, "last_login_at": "2026-09-27T14:20:00Z", "mfa": {"enforced": true, "enrolled": true, "method": "totp"}, "attributes": {"department": "Engineering", "geo_region": "EU-Central", "ip_cidr": "198.51.100.0/24", "network_trust": "corporate", "device_posture": "managed_compliant", "risk_score": 10}, "scenario_id": "baseline_senior_developer"}
4
+ {"id": "usr_004", "uuid": "0d6c7b5e-1f4a-4d2c-819e-8f3a5c0b2d04", "email": "elena.qa@example.com", "org_id": "org_enterprise_01", "org_role": "member", "workspace_roles": {"ws_prod_eu": "guest", "ws_staging": "workspace_editor"}, "effective_permissions": ["data:records:read", "data:records:write", "team:members:read"], "denied_permissions": [], "status": "active", "employment_type": "full_time", "access_expires_at": null, "last_login_at": "2026-09-28T06:50:00Z", "mfa": {"enforced": true, "enrolled": true, "method": "totp"}, "attributes": {"department": "Quality Assurance", "geo_region": "US-East", "ip_cidr": "192.0.2.0/24", "network_trust": "vpn", "device_posture": "managed_compliant", "risk_score": 8}, "scenario_id": "baseline_qa_engineer"}
5
+ {"id": "usr_005", "uuid": "1e7d8c6f-2a5b-4e3d-920f-9a4b6d1c3e05", "email": "claire.billing@example.com", "org_id": "org_enterprise_01", "org_role": "billing_manager", "workspace_roles": {}, "effective_permissions": ["org:billing:read", "org:billing:write", "org:invoices:export", "team:members:read", "data:records:read"], "denied_permissions": [], "status": "active", "employment_type": "full_time", "access_expires_at": null, "last_login_at": "2026-09-26T16:10:00Z", "mfa": {"enforced": true, "enrolled": true, "method": "totp"}, "attributes": {"department": "Finance", "geo_region": "US-East", "ip_cidr": "192.0.2.0/24", "network_trust": "corporate", "device_posture": "managed_compliant", "risk_score": 5}, "scenario_id": "baseline_billing_manager"}
6
+ {"id": "usr_006", "uuid": "2f8e9d7a-3b6c-4f4e-a31a-0b5c7e2d4f06", "email": "victor.audit@example.com", "org_id": "org_enterprise_01", "org_role": "compliance_auditor", "workspace_roles": {}, "effective_permissions": ["audit:events:read", "compliance:reports:export", "data:records:read", "team:members:read"], "denied_permissions": [], "status": "active", "employment_type": "full_time", "access_expires_at": null, "last_login_at": "2026-09-27T10:05:00Z", "mfa": {"enforced": true, "enrolled": true, "method": "hardware_key"}, "attributes": {"department": "Compliance", "geo_region": "EU-Central", "ip_cidr": "198.51.100.0/24", "network_trust": "corporate", "device_posture": "managed_compliant", "risk_score": 2}, "scenario_id": "baseline_compliance_auditor"}
7
+ {"id": "usr_007", "uuid": "3a9f0e8b-4c7d-4a5f-842b-1c6d8f3e5a07", "email": "maya.ops@example.com", "org_id": "org_enterprise_01", "org_role": "member", "workspace_roles": {"ws_prod_eu": "workspace_editor", "ws_staging": "workspace_editor"}, "effective_permissions": ["data:records:read", "data:records:write", "data:records:export", "workspace:settings:read", "team:members:read"], "denied_permissions": [], "status": "active", "employment_type": "full_time", "access_expires_at": null, "last_login_at": "2026-09-28T05:30:00Z", "mfa": {"enforced": true, "enrolled": true, "method": "totp"}, "attributes": {"department": "Operations", "geo_region": "EU-Central", "ip_cidr": "198.51.100.0/24", "network_trust": "corporate", "device_posture": "managed_compliant", "risk_score": 5}, "scenario_id": "baseline_site_reliability"}
8
+ {"id": "usr_008", "uuid": "4b0a1f9c-5d8e-4b6a-853c-2d7e9a4f6b08", "email": "liam.support@example.com", "org_id": "org_enterprise_01", "org_role": "member", "workspace_roles": {"ws_prod_eu": "guest", "ws_staging": "guest"}, "effective_permissions": ["data:records:read", "team:members:read"], "denied_permissions": ["data:records:export", "data:records:write"], "status": "active", "employment_type": "full_time", "access_expires_at": null, "last_login_at": "2026-09-28T04:45:00Z", "mfa": {"enforced": true, "enrolled": true, "method": "totp"}, "attributes": {"department": "Customer Support", "geo_region": "US-East", "ip_cidr": "192.0.2.0/24", "network_trust": "vpn", "device_posture": "managed_compliant", "risk_score": 12}, "scenario_id": "baseline_support_agent"}
9
+ {"id": "usr_009", "uuid": "5c1b2a0d-6e9f-4c7b-864d-3e8f0b5a7c09", "email": "olivia.product@example.com", "org_id": "org_enterprise_01", "org_role": "workspace_editor", "workspace_roles": {"ws_prod_eu": "workspace_editor", "ws_staging": "workspace_editor"}, "effective_permissions": ["data:records:read", "data:records:write", "data:records:export", "workspace:settings:read", "team:members:read"], "denied_permissions": [], "status": "active", "employment_type": "full_time", "access_expires_at": null, "last_login_at": "2026-09-27T11:20:00Z", "mfa": {"enforced": true, "enrolled": true, "method": "totp"}, "attributes": {"department": "Product", "geo_region": "US-East", "ip_cidr": "192.0.2.0/24", "network_trust": "corporate", "device_posture": "managed_compliant", "risk_score": 5}, "scenario_id": "baseline_product_manager"}
10
+ {"id": "usr_010", "uuid": "6d2c3b1e-7f0a-4d8c-875e-4f9a1c6b8d10", "email": "noah.data@example.com", "org_id": "org_enterprise_01", "org_role": "member", "workspace_roles": {"ws_prod_eu": "workspace_editor"}, "effective_permissions": ["data:records:read", "data:records:export", "team:members:read"], "denied_permissions": ["data:records:write"], "status": "active", "employment_type": "full_time", "access_expires_at": null, "last_login_at": "2026-09-26T17:00:00Z", "mfa": {"enforced": true, "enrolled": true, "method": "totp"}, "attributes": {"department": "Analytics", "geo_region": "US-East", "ip_cidr": "192.0.2.0/24", "network_trust": "corporate", "device_posture": "managed_compliant", "risk_score": 10}, "scenario_id": "baseline_data_analyst"}
11
+ {"id": "usr_011", "uuid": "7e3d4c2f-8a1b-4e9d-886f-5a0b2d7c9e11", "email": "emma.design@example.com", "org_id": "org_enterprise_01", "org_role": "member", "workspace_roles": {"ws_prod_eu": "guest", "ws_staging": "guest"}, "effective_permissions": ["data:records:read", "team:members:read"], "denied_permissions": [], "status": "active", "employment_type": "full_time", "access_expires_at": null, "last_login_at": "2026-09-25T13:40:00Z", "mfa": {"enforced": true, "enrolled": true, "method": "totp"}, "attributes": {"department": "Design", "geo_region": "EU-Central", "ip_cidr": "198.51.100.0/24", "network_trust": "corporate", "device_posture": "managed_compliant", "risk_score": 5}, "scenario_id": "baseline_ui_designer"}
12
+ {"id": "usr_012", "uuid": "8f4e5d3a-9b2c-4f0e-897a-6b1c3e8d0f12", "email": "hannah.legal@example.com", "org_id": "org_enterprise_01", "org_role": "compliance_auditor", "workspace_roles": {}, "effective_permissions": ["audit:events:read", "compliance:reports:export", "data:records:read", "team:members:read"], "denied_permissions": [], "status": "active", "employment_type": "full_time", "access_expires_at": null, "last_login_at": "2026-09-24T09:30:00Z", "mfa": {"enforced": true, "enrolled": true, "method": "hardware_key"}, "attributes": {"department": "Legal", "geo_region": "EU-Central", "ip_cidr": "198.51.100.0/24", "network_trust": "corporate", "device_posture": "managed_compliant", "risk_score": 0}, "scenario_id": "baseline_legal_counsel"}
13
+ {"id": "usr_013", "uuid": "9a5f6e4b-0c3d-4a1f-808b-7c2d4f9e1a13", "email": "external.partner@example.com", "org_id": "org_enterprise_01", "org_role": "guest", "workspace_roles": {"ws_staging": "guest"}, "effective_permissions": ["data:records:read"], "denied_permissions": ["data:records:write", "data:records:export", "team:members:read"], "status": "active", "employment_type": "contractor", "access_expires_at": "2026-12-31T23:59:59Z", "last_login_at": "2026-09-27T08:15:00Z", "mfa": {"enforced": true, "enrolled": true, "method": "totp"}, "attributes": {"department": "External Partner", "geo_region": "US-East", "ip_cidr": "203.0.113.0/24", "network_trust": "public", "device_posture": "byod_unmanaged", "risk_score": 25}, "scenario_id": "baseline_active_partner"}
14
+ {"id": "usr_014", "uuid": "3f2b8c1e-9d4a-4e7b-8a61-5c0d2f7e9b14", "email": "contractor.dev@example.com", "org_id": "org_enterprise_01", "org_role": "member", "workspace_roles": {"ws_prod_eu": "workspace_editor", "ws_staging": "guest"}, "effective_permissions": ["data:records:read", "data:records:write", "data:records:export", "workspace:settings:read"], "denied_permissions": [], "status": "active", "employment_type": "contractor", "access_expires_at": "2026-08-31T00:00:00Z", "last_login_at": "2026-08-25T11:20:00Z", "mfa": {"enforced": true, "enrolled": true, "method": "totp"}, "attributes": {"department": "Engineering", "geo_region": "EU-Central", "ip_cidr": "203.0.113.0/24", "network_trust": "vpn", "device_posture": "byod_unmanaged", "risk_score": 45}, "scenario_id": "scenario_expired_contractor"}
15
+ {"id": "usr_015", "uuid": "6b9e2c4a-1f8d-4b7a-8a3e-4d0f2a7b9c15", "email": "auditor.sod@example.com", "org_id": "org_enterprise_01", "org_role": "compliance_auditor", "workspace_roles": {}, "effective_permissions": ["audit:events:read", "compliance:reports:export", "finance:requests:create", "finance:requests:approve"], "denied_permissions": [], "status": "active", "employment_type": "full_time", "access_expires_at": null, "last_login_at": "2026-09-26T09:15:00Z", "mfa": {"enforced": true, "enrolled": true, "method": "totp"}, "attributes": {"department": "Finance", "geo_region": "US-East", "ip_cidr": "198.51.100.0/24", "network_trust": "corporate", "device_posture": "managed_compliant", "risk_score": 60}, "scenario_id": "scenario_separation_of_duty_conflict"}
16
+ {"id": "usr_016", "uuid": "4c0b2d8e-6a1f-4e9b-8c3d-2b1f4a8e0c16", "email": "unprotected.admin@example.com", "org_id": "org_enterprise_01", "org_role": "super_admin", "workspace_roles": {}, "effective_permissions": ["*:*:*"], "denied_permissions": [], "status": "active", "employment_type": "full_time", "access_expires_at": null, "last_login_at": "2026-09-28T02:00:00Z", "mfa": {"enforced": true, "enrolled": false, "method": "none"}, "attributes": {"department": "Infrastructure", "geo_region": "US-East", "ip_cidr": "203.0.113.0/24", "network_trust": "public", "device_posture": "byod_unmanaged", "risk_score": 85}, "scenario_id": "scenario_mfa_non_compliant_admin"}
17
+ {"id": "usr_017", "uuid": "5d1c3e9f-7b2a-4f0c-8d4e-3c2a5b9f1d17", "email": "rogue.leaver@example.com", "org_id": "org_enterprise_01", "org_role": "workspace_editor", "workspace_roles": {"ws_prod_eu": "workspace_editor"}, "effective_permissions": ["data:records:read", "data:records:write", "data:records:export"], "denied_permissions": [], "status": "suspended", "employment_type": "full_time", "access_expires_at": null, "last_login_at": "2026-09-27T23:45:00Z", "mfa": {"enforced": true, "enrolled": true, "method": "totp"}, "session_override": {"unrevoked_token_id": "tok_synthetic_active_leaver_session_jwt", "session_expires_at": "2026-10-15T00:00:00Z"}, "attributes": {"department": "Engineering", "geo_region": "EU-Central", "ip_cidr": "203.0.113.0/24", "network_trust": "public", "device_posture": "byod_unmanaged", "risk_score": 95}, "scenario_id": "scenario_suspended_user_active_session"}
18
+ {"id": "usr_018", "uuid": "9d4a1c7e-3b8f-4e6a-8c2d-1a0e5b7f9d18", "email": "restricted.admin@example.com", "org_id": "org_enterprise_01", "org_role": "super_admin", "workspace_roles": {"ws_prod_eu": "guest"}, "effective_permissions": ["*:*:*"], "denied_permissions": ["data:records:export", "data:records:write"], "status": "active", "employment_type": "full_time", "access_expires_at": null, "last_login_at": "2026-09-28T07:10:00Z", "mfa": {"enforced": true, "enrolled": true, "method": "hardware_key"}, "attributes": {"department": "Operations", "geo_region": "EU-Central", "ip_cidr": "192.0.2.0/24", "network_trust": "corporate", "device_posture": "managed_compliant", "risk_score": 10}, "scenario_id": "scenario_restricting_workspace_override"}
19
+ {"id": "usr_019", "uuid": "7f3e5b1a-9d4c-4a2e-8f6a-5e4c7d1b3f19", "email": "dormant.admin@example.com", "org_id": "org_enterprise_01", "org_role": "super_admin", "workspace_roles": {}, "effective_permissions": ["*:*:*"], "denied_permissions": [], "status": "active", "employment_type": "full_time", "access_expires_at": null, "last_login_at": "2026-05-10T08:00:00Z", "mfa": {"enforced": true, "enrolled": true, "method": "totp"}, "attributes": {"department": "Security", "geo_region": "US-East", "ip_cidr": "198.51.100.0/24", "network_trust": "corporate", "device_posture": "managed_compliant", "risk_score": 75}, "scenario_id": "scenario_dormant_high_privilege_account"}
20
+ {"id": "usr_020", "uuid": "8a4f6c2b-0e5d-4b3f-807b-6f5d8e2c4a20", "email": "breakglass.oncall@example.com", "org_id": "org_enterprise_01", "org_role": "member", "workspace_roles": {"ws_prod_eu": "super_admin"}, "effective_permissions": ["*:*:*"], "denied_permissions": [], "status": "active", "employment_type": "full_time", "access_expires_at": "2026-09-27T20:00:00Z", "last_login_at": "2026-09-27T19:30:00Z", "mfa": {"enforced": true, "enrolled": true, "method": "hardware_key"}, "attributes": {"department": "Engineering", "geo_region": "EU-Central", "ip_cidr": "198.51.100.0/24", "network_trust": "corporate", "device_posture": "managed_compliant", "risk_score": 30}, "scenario_id": "scenario_jit_elevation_expired"}
21
+ {"id": "usr_021", "uuid": "9b5a7d3c-1f6e-4c4a-818c-7a6e9f3d5b21", "email": "customer.victim@example.com", "org_id": "org_enterprise_01", "org_role": "member", "workspace_roles": {"ws_prod_eu": "member"}, "effective_permissions": ["data:records:read"], "denied_permissions": [], "status": "active", "employment_type": "full_time", "access_expires_at": null, "last_login_at": "2026-09-28T07:45:00Z", "mfa": {"enforced": true, "enrolled": true, "method": "totp"}, "impersonation": {"is_impersonated": true, "impersonated_by": "usr_001", "impersonation_reason": "ticket_audit_investigation"}, "attributes": {"department": "Operations", "geo_region": "EU-Central", "ip_cidr": "198.51.100.0/24", "network_trust": "corporate", "device_posture": "managed_compliant", "risk_score": 20}, "scenario_id": "scenario_impersonation_session"}
22
+ {"id": "usr_022", "uuid": "0c6b8e4d-2a7f-4d5b-829d-8b7f0a4e6c22", "email": "twin.consultant@example.com", "org_id": "org_enterprise_02", "org_role": "member", "workspace_roles": {"ws_client_us": "workspace_editor"}, "effective_permissions": ["data:records:read", "data:records:write"], "denied_permissions": [], "status": "active", "employment_type": "contractor", "access_expires_at": "2026-11-30T00:00:00Z", "last_login_at": "2026-09-27T16:00:00Z", "mfa": {"enforced": true, "enrolled": true, "method": "totp"}, "attributes": {"department": "Consulting", "geo_region": "US-East", "ip_cidr": "192.0.2.0/24", "network_trust": "vpn", "device_posture": "managed_compliant", "risk_score": 15}, "scenario_id": "scenario_cross_tenant_identity"}
23
+ {"id": "usr_023", "uuid": "1d7c9f5e-3b8a-4e6c-830e-9c8a1b5f7d23", "email": "pending.hire@example.com", "org_id": "org_enterprise_01", "org_role": "member", "workspace_roles": {"ws_prod_eu": "member"}, "effective_permissions": [], "denied_permissions": ["*:*:*"], "status": "pending_invite", "employment_type": "full_time", "access_expires_at": null, "last_login_at": null, "mfa": {"enforced": true, "enrolled": false, "method": "none"}, "attributes": {"department": "Engineering", "geo_region": "EU-Central", "ip_cidr": "203.0.113.0/24", "network_trust": "public", "device_posture": "byod_unmanaged", "risk_score": 50}, "scenario_id": "scenario_pending_invite_unactivated"}
24
+ {"id": "svc_024", "uuid": "1e8d4a9f-5c0b-4e7a-8a61-7a3f4e2b8c24", "email": "ci-runner@serviceaccount.example.com", "org_id": "org_enterprise_01", "org_role": "workspace_editor", "workspace_roles": {"ws_staging": "workspace_editor"}, "effective_permissions": ["data:records:read", "data:records:write"], "denied_permissions": ["infra:runners:delete"], "status": "active", "employment_type": "service_account", "access_expires_at": null, "last_login_at": "2026-09-28T06:00:00Z", "mfa": {"enforced": false, "enrolled": false, "method": "none"}, "service_account_credentials": {"client_id": "sa_ci_runner_prod", "client_secret_ref": "vault://secrets/ci-runner/staging-key"}, "attributes": {"department": "DevOps", "geo_region": "US-East", "ip_cidr": "192.0.2.0/24", "network_trust": "corporate", "device_posture": "server_hardened", "risk_score": 5}, "scenario_id": "scenario_machine_service_account"}
25
+ {"id": "svc_025", "uuid": "2f9e5b0a-6d1c-4f8b-8b72-8b4a5f3c9d25", "email": "legacy-sync@serviceaccount.example.com", "org_id": "org_enterprise_01", "org_role": "super_admin", "workspace_roles": {}, "effective_permissions": ["*:*:*"], "denied_permissions": [], "status": "active", "employment_type": "service_account", "access_expires_at": null, "last_login_at": "2026-09-28T01:10:00Z", "mfa": {"enforced": false, "enrolled": false, "method": "none"}, "service_account_credentials": {"client_id": "sa_legacy_sync_orphaned", "client_secret_ref": "vault://secrets/sync/legacy-unrotated"}, "attributes": {"department": "IT", "geo_region": "US-East", "ip_cidr": "192.0.2.0/24", "network_trust": "corporate", "device_posture": "server_hardened", "risk_score": 70}, "scenario_id": "scenario_overprivileged_service_account"}
synthetic-rbac-users.json ADDED
@@ -0,0 +1,968 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://www.aptdot.com/data/v1/synthetic-rbac-users.schema.json",
3
+ "metadata": {
4
+ "name": "Synthetic RBAC & User Permission Matrix",
5
+ "version": "1.0.3",
6
+ "reference_time": "2026-09-28T00:00:00Z",
7
+ "generated_at": "2026-09-29T11:45:00.000Z",
8
+ "license": "https://creativecommons.org/publicdomain/zero/1.0/",
9
+ "permission_grammar": "domain:resource:action",
10
+ "wildcard_rules": {
11
+ "*": "Matches any single segment (e.g., data:records:* matches read, write, and export on records)",
12
+ "*:*:*": "Full administrative super-wildcard bypass"
13
+ },
14
+ "resolution_precedence": [
15
+ "0. If resource.org_id is non-null and does not equal principal.org_id, deny all actions (cross-tenant isolation).",
16
+ "1. If mfa.enforced is true and mfa.enrolled is false, deny all actions regardless of effective_permissions.",
17
+ "2. If status is 'suspended' or 'pending_invite', deny all actions regardless of effective_permissions.",
18
+ "3. If access_expires_at is non-null and earlier than reference_time, deny all actions regardless of effective_permissions.",
19
+ "4. If last_login_at is non-null and more than dormancy_threshold_days before reference_time, deny all actions regardless of effective_permissions.",
20
+ "5. Within workspace scope, workspace_roles overrides org_role for that workspace only.",
21
+ "6. denied_permissions always overrides effective_permissions, even for wildcard (*:*:*) grants.",
22
+ "7. If the requested action and an existing granted action appear together in separation_of_duty_conflicts, deny the requested action.",
23
+ "8. Otherwise, allow if the action matches an entry in effective_permissions (exact match or wildcard segment match)."
24
+ ],
25
+ "dormancy_threshold_days": 90,
26
+ "separation_of_duty_conflicts": [
27
+ ["finance:requests:create", "finance:requests:approve"]
28
+ ],
29
+ "total_users": 25,
30
+ "total_roles": 6,
31
+ "total_resources": 8,
32
+ "total_test_cases": 12,
33
+ "description": "Production-grade synthetic authorization test suite featuring multi-tenant RBAC identities, resource catalogs, and deterministic authorization test oracles."
34
+ },
35
+ "roles": [
36
+ {
37
+ "role": "super_admin",
38
+ "inherits": ["workspace_editor", "billing_manager", "compliance_auditor"],
39
+ "permissions": ["*:*:*"],
40
+ "description": "Global administrator with unrestricted operational and administrative access."
41
+ },
42
+ {
43
+ "role": "workspace_editor",
44
+ "inherits": ["member"],
45
+ "permissions": [
46
+ "data:records:read",
47
+ "data:records:write",
48
+ "data:records:export",
49
+ "workspace:settings:read"
50
+ ],
51
+ "description": "Operational read/write access to workspace data and settings."
52
+ },
53
+ {
54
+ "role": "compliance_auditor",
55
+ "inherits": ["member"],
56
+ "permissions": [
57
+ "audit:events:read",
58
+ "compliance:reports:export",
59
+ "data:records:read"
60
+ ],
61
+ "description": "Read-only access across compliance telemetry and system audit logs."
62
+ },
63
+ {
64
+ "role": "billing_manager",
65
+ "inherits": ["member"],
66
+ "permissions": [
67
+ "org:billing:read",
68
+ "org:billing:write",
69
+ "org:invoices:export"
70
+ ],
71
+ "description": "Financial and subscription management authority."
72
+ },
73
+ {
74
+ "role": "member",
75
+ "inherits": [],
76
+ "permissions": [
77
+ "team:members:read",
78
+ "data:records:read"
79
+ ],
80
+ "description": "Baseline collaborator role with read access to shared resources."
81
+ },
82
+ {
83
+ "role": "guest",
84
+ "inherits": [],
85
+ "permissions": [
86
+ "data:records:read"
87
+ ],
88
+ "description": "Least-privilege external participant."
89
+ }
90
+ ],
91
+ "resources": [
92
+ {
93
+ "id": "res_rec_001",
94
+ "org_id": "org_enterprise_01",
95
+ "workspace_id": "ws_prod_eu",
96
+ "type": "data:records",
97
+ "owner_id": "usr_003",
98
+ "sensitivity": "confidential",
99
+ "data_residency": "EU"
100
+ },
101
+ {
102
+ "id": "res_rec_002",
103
+ "org_id": "org_enterprise_01",
104
+ "workspace_id": "ws_staging",
105
+ "type": "data:records",
106
+ "owner_id": "usr_004",
107
+ "sensitivity": "internal",
108
+ "data_residency": "US"
109
+ },
110
+ {
111
+ "id": "res_rec_003",
112
+ "org_id": "org_enterprise_02",
113
+ "workspace_id": "ws_client_us",
114
+ "type": "data:records",
115
+ "owner_id": "usr_022",
116
+ "sensitivity": "confidential",
117
+ "data_residency": "US"
118
+ },
119
+ {
120
+ "id": "res_bill_001",
121
+ "org_id": "org_enterprise_01",
122
+ "workspace_id": null,
123
+ "type": "org:billing",
124
+ "owner_id": "usr_005",
125
+ "sensitivity": "restricted",
126
+ "data_residency": "US"
127
+ },
128
+ {
129
+ "id": "res_audit_001",
130
+ "org_id": "org_enterprise_01",
131
+ "workspace_id": null,
132
+ "type": "audit:events",
133
+ "owner_id": "system",
134
+ "sensitivity": "restricted",
135
+ "data_residency": "EU"
136
+ },
137
+ {
138
+ "id": "res_sec_001",
139
+ "org_id": "org_enterprise_01",
140
+ "workspace_id": null,
141
+ "type": "security:settings",
142
+ "owner_id": "usr_001",
143
+ "sensitivity": "critical",
144
+ "data_residency": "EU"
145
+ },
146
+ {
147
+ "id": "res_fin_001",
148
+ "org_id": "org_enterprise_01",
149
+ "workspace_id": null,
150
+ "type": "finance:requests",
151
+ "owner_id": "usr_005",
152
+ "sensitivity": "restricted",
153
+ "data_residency": "US"
154
+ },
155
+ {
156
+ "id": "res_infra_001",
157
+ "org_id": "org_enterprise_01",
158
+ "workspace_id": "ws_staging",
159
+ "type": "infra:runners",
160
+ "owner_id": "svc_024",
161
+ "sensitivity": "internal",
162
+ "data_residency": "US"
163
+ }
164
+ ],
165
+ "users": [
166
+ {
167
+ "id": "usr_001",
168
+ "uuid": "7a3f4e2b-8c1d-4a9f-9e6b-5c0d2f7e9a01",
169
+ "email": "alex.admin@example.com",
170
+ "org_id": "org_enterprise_01",
171
+ "org_role": "super_admin",
172
+ "workspace_roles": {},
173
+ "effective_permissions": ["*:*:*"],
174
+ "denied_permissions": [],
175
+ "status": "active",
176
+ "employment_type": "full_time",
177
+ "access_expires_at": null,
178
+ "last_login_at": "2026-09-27T18:40:00Z",
179
+ "mfa": { "enforced": true, "enrolled": true, "method": "hardware_key" },
180
+ "attributes": {
181
+ "department": "Security",
182
+ "geo_region": "EU-Central",
183
+ "ip_cidr": "198.51.100.0/24",
184
+ "network_trust": "corporate",
185
+ "device_posture": "managed_compliant",
186
+ "risk_score": 0
187
+ },
188
+ "scenario_id": "baseline_super_admin"
189
+ },
190
+ {
191
+ "id": "usr_002",
192
+ "uuid": "8b4a5f3c-9d2e-4b0a-8f7c-6d1e3a8f0b02",
193
+ "email": "sarah.lead@example.com",
194
+ "org_id": "org_enterprise_01",
195
+ "org_role": "workspace_editor",
196
+ "workspace_roles": { "ws_prod_eu": "workspace_editor", "ws_staging": "workspace_editor" },
197
+ "effective_permissions": [
198
+ "data:records:read",
199
+ "data:records:write",
200
+ "data:records:export",
201
+ "workspace:settings:read",
202
+ "team:members:read"
203
+ ],
204
+ "denied_permissions": [],
205
+ "status": "active",
206
+ "employment_type": "full_time",
207
+ "access_expires_at": null,
208
+ "last_login_at": "2026-09-28T07:15:00Z",
209
+ "mfa": { "enforced": true, "enrolled": true, "method": "totp" },
210
+ "attributes": {
211
+ "department": "Engineering",
212
+ "geo_region": "EU-Central",
213
+ "ip_cidr": "198.51.100.0/24",
214
+ "network_trust": "corporate",
215
+ "device_posture": "managed_compliant",
216
+ "risk_score": 5
217
+ },
218
+ "scenario_id": "baseline_engineering_lead"
219
+ },
220
+ {
221
+ "id": "usr_003",
222
+ "uuid": "9c5b6a4d-0e3f-4c1b-b08d-7e2f4b9a1c03",
223
+ "email": "marcus.dev@example.com",
224
+ "org_id": "org_enterprise_01",
225
+ "org_role": "member",
226
+ "workspace_roles": { "ws_prod_eu": "workspace_editor", "ws_staging": "workspace_editor" },
227
+ "effective_permissions": [
228
+ "data:records:read",
229
+ "data:records:write",
230
+ "data:records:export",
231
+ "workspace:settings:read",
232
+ "team:members:read"
233
+ ],
234
+ "denied_permissions": [],
235
+ "status": "active",
236
+ "employment_type": "full_time",
237
+ "access_expires_at": null,
238
+ "last_login_at": "2026-09-27T14:20:00Z",
239
+ "mfa": { "enforced": true, "enrolled": true, "method": "totp" },
240
+ "attributes": {
241
+ "department": "Engineering",
242
+ "geo_region": "EU-Central",
243
+ "ip_cidr": "198.51.100.0/24",
244
+ "network_trust": "corporate",
245
+ "device_posture": "managed_compliant",
246
+ "risk_score": 10
247
+ },
248
+ "scenario_id": "baseline_senior_developer"
249
+ },
250
+ {
251
+ "id": "usr_004",
252
+ "uuid": "0d6c7b5e-1f4a-4d2c-819e-8f3a5c0b2d04",
253
+ "email": "elena.qa@example.com",
254
+ "org_id": "org_enterprise_01",
255
+ "org_role": "member",
256
+ "workspace_roles": { "ws_prod_eu": "guest", "ws_staging": "workspace_editor" },
257
+ "effective_permissions": [
258
+ "data:records:read",
259
+ "data:records:write",
260
+ "team:members:read"
261
+ ],
262
+ "denied_permissions": [],
263
+ "status": "active",
264
+ "employment_type": "full_time",
265
+ "access_expires_at": null,
266
+ "last_login_at": "2026-09-28T06:50:00Z",
267
+ "mfa": { "enforced": true, "enrolled": true, "method": "totp" },
268
+ "attributes": {
269
+ "department": "Quality Assurance",
270
+ "geo_region": "US-East",
271
+ "ip_cidr": "192.0.2.0/24",
272
+ "network_trust": "vpn",
273
+ "device_posture": "managed_compliant",
274
+ "risk_score": 8
275
+ },
276
+ "scenario_id": "baseline_qa_engineer"
277
+ },
278
+ {
279
+ "id": "usr_005",
280
+ "uuid": "1e7d8c6f-2a5b-4e3d-920f-9a4b6d1c3e05",
281
+ "email": "claire.billing@example.com",
282
+ "org_id": "org_enterprise_01",
283
+ "org_role": "billing_manager",
284
+ "workspace_roles": {},
285
+ "effective_permissions": [
286
+ "org:billing:read",
287
+ "org:billing:write",
288
+ "org:invoices:export",
289
+ "team:members:read",
290
+ "data:records:read"
291
+ ],
292
+ "denied_permissions": [],
293
+ "status": "active",
294
+ "employment_type": "full_time",
295
+ "access_expires_at": null,
296
+ "last_login_at": "2026-09-26T16:10:00Z",
297
+ "mfa": { "enforced": true, "enrolled": true, "method": "totp" },
298
+ "attributes": {
299
+ "department": "Finance",
300
+ "geo_region": "US-East",
301
+ "ip_cidr": "192.0.2.0/24",
302
+ "network_trust": "corporate",
303
+ "device_posture": "managed_compliant",
304
+ "risk_score": 5
305
+ },
306
+ "scenario_id": "baseline_billing_manager"
307
+ },
308
+ {
309
+ "id": "usr_006",
310
+ "uuid": "2f8e9d7a-3b6c-4f4e-a31a-0b5c7e2d4f06",
311
+ "email": "victor.audit@example.com",
312
+ "org_id": "org_enterprise_01",
313
+ "org_role": "compliance_auditor",
314
+ "workspace_roles": {},
315
+ "effective_permissions": [
316
+ "audit:events:read",
317
+ "compliance:reports:export",
318
+ "data:records:read",
319
+ "team:members:read"
320
+ ],
321
+ "denied_permissions": [],
322
+ "status": "active",
323
+ "employment_type": "full_time",
324
+ "access_expires_at": null,
325
+ "last_login_at": "2026-09-27T10:05:00Z",
326
+ "mfa": { "enforced": true, "enrolled": true, "method": "hardware_key" },
327
+ "attributes": {
328
+ "department": "Compliance",
329
+ "geo_region": "EU-Central",
330
+ "ip_cidr": "198.51.100.0/24",
331
+ "network_trust": "corporate",
332
+ "device_posture": "managed_compliant",
333
+ "risk_score": 2
334
+ },
335
+ "scenario_id": "baseline_compliance_auditor"
336
+ },
337
+ {
338
+ "id": "usr_007",
339
+ "uuid": "3a9f0e8b-4c7d-4a5f-842b-1c6d8f3e5a07",
340
+ "email": "maya.ops@example.com",
341
+ "org_id": "org_enterprise_01",
342
+ "org_role": "member",
343
+ "workspace_roles": { "ws_prod_eu": "workspace_editor", "ws_staging": "workspace_editor" },
344
+ "effective_permissions": [
345
+ "data:records:read",
346
+ "data:records:write",
347
+ "data:records:export",
348
+ "workspace:settings:read",
349
+ "team:members:read"
350
+ ],
351
+ "denied_permissions": [],
352
+ "status": "active",
353
+ "employment_type": "full_time",
354
+ "access_expires_at": null,
355
+ "last_login_at": "2026-09-28T05:30:00Z",
356
+ "mfa": { "enforced": true, "enrolled": true, "method": "totp" },
357
+ "attributes": {
358
+ "department": "Operations",
359
+ "geo_region": "EU-Central",
360
+ "ip_cidr": "198.51.100.0/24",
361
+ "network_trust": "corporate",
362
+ "device_posture": "managed_compliant",
363
+ "risk_score": 5
364
+ },
365
+ "scenario_id": "baseline_site_reliability"
366
+ },
367
+ {
368
+ "id": "usr_008",
369
+ "uuid": "4b0a1f9c-5d8e-4b6a-853c-2d7e9a4f6b08",
370
+ "email": "liam.support@example.com",
371
+ "org_id": "org_enterprise_01",
372
+ "org_role": "member",
373
+ "workspace_roles": { "ws_prod_eu": "guest", "ws_staging": "guest" },
374
+ "effective_permissions": [
375
+ "data:records:read",
376
+ "team:members:read"
377
+ ],
378
+ "denied_permissions": ["data:records:export", "data:records:write"],
379
+ "status": "active",
380
+ "employment_type": "full_time",
381
+ "access_expires_at": null,
382
+ "last_login_at": "2026-09-28T04:45:00Z",
383
+ "mfa": { "enforced": true, "enrolled": true, "method": "totp" },
384
+ "attributes": {
385
+ "department": "Customer Support",
386
+ "geo_region": "US-East",
387
+ "ip_cidr": "192.0.2.0/24",
388
+ "network_trust": "vpn",
389
+ "device_posture": "managed_compliant",
390
+ "risk_score": 12
391
+ },
392
+ "scenario_id": "baseline_support_agent"
393
+ },
394
+ {
395
+ "id": "usr_009",
396
+ "uuid": "5c1b2a0d-6e9f-4c7b-864d-3e8f0b5a7c09",
397
+ "email": "olivia.product@example.com",
398
+ "org_id": "org_enterprise_01",
399
+ "org_role": "workspace_editor",
400
+ "workspace_roles": { "ws_prod_eu": "workspace_editor", "ws_staging": "workspace_editor" },
401
+ "effective_permissions": [
402
+ "data:records:read",
403
+ "data:records:write",
404
+ "data:records:export",
405
+ "workspace:settings:read",
406
+ "team:members:read"
407
+ ],
408
+ "denied_permissions": [],
409
+ "status": "active",
410
+ "employment_type": "full_time",
411
+ "access_expires_at": null,
412
+ "last_login_at": "2026-09-27T11:20:00Z",
413
+ "mfa": { "enforced": true, "enrolled": true, "method": "totp" },
414
+ "attributes": {
415
+ "department": "Product",
416
+ "geo_region": "US-East",
417
+ "ip_cidr": "192.0.2.0/24",
418
+ "network_trust": "corporate",
419
+ "device_posture": "managed_compliant",
420
+ "risk_score": 5
421
+ },
422
+ "scenario_id": "baseline_product_manager"
423
+ },
424
+ {
425
+ "id": "usr_010",
426
+ "uuid": "6d2c3b1e-7f0a-4d8c-875e-4f9a1c6b8d10",
427
+ "email": "noah.data@example.com",
428
+ "org_id": "org_enterprise_01",
429
+ "org_role": "member",
430
+ "workspace_roles": { "ws_prod_eu": "workspace_editor" },
431
+ "effective_permissions": [
432
+ "data:records:read",
433
+ "data:records:export",
434
+ "team:members:read"
435
+ ],
436
+ "denied_permissions": ["data:records:write"],
437
+ "status": "active",
438
+ "employment_type": "full_time",
439
+ "access_expires_at": null,
440
+ "last_login_at": "2026-09-26T17:00:00Z",
441
+ "mfa": { "enforced": true, "enrolled": true, "method": "totp" },
442
+ "attributes": {
443
+ "department": "Analytics",
444
+ "geo_region": "US-East",
445
+ "ip_cidr": "192.0.2.0/24",
446
+ "network_trust": "corporate",
447
+ "device_posture": "managed_compliant",
448
+ "risk_score": 10
449
+ },
450
+ "scenario_id": "baseline_data_analyst"
451
+ },
452
+ {
453
+ "id": "usr_011",
454
+ "uuid": "7e3d4c2f-8a1b-4e9d-886f-5a0b2d7c9e11",
455
+ "email": "emma.design@example.com",
456
+ "org_id": "org_enterprise_01",
457
+ "org_role": "member",
458
+ "workspace_roles": { "ws_prod_eu": "guest", "ws_staging": "guest" },
459
+ "effective_permissions": [
460
+ "data:records:read",
461
+ "team:members:read"
462
+ ],
463
+ "denied_permissions": [],
464
+ "status": "active",
465
+ "employment_type": "full_time",
466
+ "access_expires_at": null,
467
+ "last_login_at": "2026-09-25T13:40:00Z",
468
+ "mfa": { "enforced": true, "enrolled": true, "method": "totp" },
469
+ "attributes": {
470
+ "department": "Design",
471
+ "geo_region": "EU-Central",
472
+ "ip_cidr": "198.51.100.0/24",
473
+ "network_trust": "corporate",
474
+ "device_posture": "managed_compliant",
475
+ "risk_score": 5
476
+ },
477
+ "scenario_id": "baseline_ui_designer"
478
+ },
479
+ {
480
+ "id": "usr_012",
481
+ "uuid": "8f4e5d3a-9b2c-4f0e-897a-6b1c3e8d0f12",
482
+ "email": "hannah.legal@example.com",
483
+ "org_id": "org_enterprise_01",
484
+ "org_role": "compliance_auditor",
485
+ "workspace_roles": {},
486
+ "effective_permissions": [
487
+ "audit:events:read",
488
+ "compliance:reports:export",
489
+ "data:records:read",
490
+ "team:members:read"
491
+ ],
492
+ "denied_permissions": [],
493
+ "status": "active",
494
+ "employment_type": "full_time",
495
+ "access_expires_at": null,
496
+ "last_login_at": "2026-09-24T09:30:00Z",
497
+ "mfa": { "enforced": true, "enrolled": true, "method": "hardware_key" },
498
+ "attributes": {
499
+ "department": "Legal",
500
+ "geo_region": "EU-Central",
501
+ "ip_cidr": "198.51.100.0/24",
502
+ "network_trust": "corporate",
503
+ "device_posture": "managed_compliant",
504
+ "risk_score": 0
505
+ },
506
+ "scenario_id": "baseline_legal_counsel"
507
+ },
508
+ {
509
+ "id": "usr_013",
510
+ "uuid": "9a5f6e4b-0c3d-4a1f-808b-7c2d4f9e1a13",
511
+ "email": "external.partner@example.com",
512
+ "org_id": "org_enterprise_01",
513
+ "org_role": "guest",
514
+ "workspace_roles": { "ws_staging": "guest" },
515
+ "effective_permissions": ["data:records:read"],
516
+ "denied_permissions": ["data:records:write", "data:records:export", "team:members:read"],
517
+ "status": "active",
518
+ "employment_type": "contractor",
519
+ "access_expires_at": "2026-12-31T23:59:59Z",
520
+ "last_login_at": "2026-09-27T08:15:00Z",
521
+ "mfa": { "enforced": true, "enrolled": true, "method": "totp" },
522
+ "attributes": {
523
+ "department": "External Partner",
524
+ "geo_region": "US-East",
525
+ "ip_cidr": "203.0.113.0/24",
526
+ "network_trust": "public",
527
+ "device_posture": "byod_unmanaged",
528
+ "risk_score": 25
529
+ },
530
+ "scenario_id": "baseline_active_partner"
531
+ },
532
+ {
533
+ "id": "usr_014",
534
+ "uuid": "3f2b8c1e-9d4a-4e7b-8a61-5c0d2f7e9b14",
535
+ "email": "contractor.dev@example.com",
536
+ "org_id": "org_enterprise_01",
537
+ "org_role": "member",
538
+ "workspace_roles": { "ws_prod_eu": "workspace_editor", "ws_staging": "guest" },
539
+ "effective_permissions": [
540
+ "data:records:read",
541
+ "data:records:write",
542
+ "data:records:export",
543
+ "workspace:settings:read"
544
+ ],
545
+ "denied_permissions": [],
546
+ "status": "active",
547
+ "employment_type": "contractor",
548
+ "access_expires_at": "2026-08-31T00:00:00Z",
549
+ "last_login_at": "2026-08-25T11:20:00Z",
550
+ "mfa": { "enforced": true, "enrolled": true, "method": "totp" },
551
+ "attributes": {
552
+ "department": "Engineering",
553
+ "geo_region": "EU-Central",
554
+ "ip_cidr": "203.0.113.0/24",
555
+ "network_trust": "vpn",
556
+ "device_posture": "byod_unmanaged",
557
+ "risk_score": 45
558
+ },
559
+ "scenario_id": "scenario_expired_contractor"
560
+ },
561
+ {
562
+ "id": "usr_015",
563
+ "uuid": "6b9e2c4a-1f8d-4b7a-8a3e-4d0f2a7b9c15",
564
+ "email": "auditor.sod@example.com",
565
+ "org_id": "org_enterprise_01",
566
+ "org_role": "compliance_auditor",
567
+ "workspace_roles": {},
568
+ "effective_permissions": [
569
+ "audit:events:read",
570
+ "compliance:reports:export",
571
+ "finance:requests:create",
572
+ "finance:requests:approve"
573
+ ],
574
+ "denied_permissions": [],
575
+ "status": "active",
576
+ "employment_type": "full_time",
577
+ "access_expires_at": null,
578
+ "last_login_at": "2026-09-26T09:15:00Z",
579
+ "mfa": { "enforced": true, "enrolled": true, "method": "totp" },
580
+ "attributes": {
581
+ "department": "Finance",
582
+ "geo_region": "US-East",
583
+ "ip_cidr": "198.51.100.0/24",
584
+ "network_trust": "corporate",
585
+ "device_posture": "managed_compliant",
586
+ "risk_score": 60
587
+ },
588
+ "scenario_id": "scenario_separation_of_duty_conflict"
589
+ },
590
+ {
591
+ "id": "usr_016",
592
+ "uuid": "4c0b2d8e-6a1f-4e9b-8c3d-2b1f4a8e0c16",
593
+ "email": "unprotected.admin@example.com",
594
+ "org_id": "org_enterprise_01",
595
+ "org_role": "super_admin",
596
+ "workspace_roles": {},
597
+ "effective_permissions": ["*:*:*"],
598
+ "denied_permissions": [],
599
+ "status": "active",
600
+ "employment_type": "full_time",
601
+ "access_expires_at": null,
602
+ "last_login_at": "2026-09-28T02:00:00Z",
603
+ "mfa": { "enforced": true, "enrolled": false, "method": "none" },
604
+ "attributes": {
605
+ "department": "Infrastructure",
606
+ "geo_region": "US-East",
607
+ "ip_cidr": "203.0.113.0/24",
608
+ "network_trust": "public",
609
+ "device_posture": "byod_unmanaged",
610
+ "risk_score": 85
611
+ },
612
+ "scenario_id": "scenario_mfa_non_compliant_admin"
613
+ },
614
+ {
615
+ "id": "usr_017",
616
+ "uuid": "5d1c3e9f-7b2a-4f0c-8d4e-3c2a5b9f1d17",
617
+ "email": "rogue.leaver@example.com",
618
+ "org_id": "org_enterprise_01",
619
+ "org_role": "workspace_editor",
620
+ "workspace_roles": { "ws_prod_eu": "workspace_editor" },
621
+ "effective_permissions": [
622
+ "data:records:read",
623
+ "data:records:write",
624
+ "data:records:export"
625
+ ],
626
+ "denied_permissions": [],
627
+ "status": "suspended",
628
+ "employment_type": "full_time",
629
+ "access_expires_at": null,
630
+ "last_login_at": "2026-09-27T23:45:00Z",
631
+ "mfa": { "enforced": true, "enrolled": true, "method": "totp" },
632
+ "session_override": {
633
+ "unrevoked_token_id": "tok_synthetic_active_leaver_session_jwt",
634
+ "session_expires_at": "2026-10-15T00:00:00Z"
635
+ },
636
+ "attributes": {
637
+ "department": "Engineering",
638
+ "geo_region": "EU-Central",
639
+ "ip_cidr": "203.0.113.0/24",
640
+ "network_trust": "public",
641
+ "device_posture": "byod_unmanaged",
642
+ "risk_score": 95
643
+ },
644
+ "scenario_id": "scenario_suspended_user_active_session"
645
+ },
646
+ {
647
+ "id": "usr_018",
648
+ "uuid": "9d4a1c7e-3b8f-4e6a-8c2d-1a0e5b7f9d18",
649
+ "email": "restricted.admin@example.com",
650
+ "org_id": "org_enterprise_01",
651
+ "org_role": "super_admin",
652
+ "workspace_roles": { "ws_prod_eu": "guest" },
653
+ "effective_permissions": ["*:*:*"],
654
+ "denied_permissions": ["data:records:export", "data:records:write"],
655
+ "status": "active",
656
+ "employment_type": "full_time",
657
+ "access_expires_at": null,
658
+ "last_login_at": "2026-09-28T07:10:00Z",
659
+ "mfa": { "enforced": true, "enrolled": true, "method": "hardware_key" },
660
+ "attributes": {
661
+ "department": "Operations",
662
+ "geo_region": "EU-Central",
663
+ "ip_cidr": "192.0.2.0/24",
664
+ "network_trust": "corporate",
665
+ "device_posture": "managed_compliant",
666
+ "risk_score": 10
667
+ },
668
+ "scenario_id": "scenario_restricting_workspace_override"
669
+ },
670
+ {
671
+ "id": "usr_019",
672
+ "uuid": "7f3e5b1a-9d4c-4a2e-8f6a-5e4c7d1b3f19",
673
+ "email": "dormant.admin@example.com",
674
+ "org_id": "org_enterprise_01",
675
+ "org_role": "super_admin",
676
+ "workspace_roles": {},
677
+ "effective_permissions": ["*:*:*"],
678
+ "denied_permissions": [],
679
+ "status": "active",
680
+ "employment_type": "full_time",
681
+ "access_expires_at": null,
682
+ "last_login_at": "2026-05-10T08:00:00Z",
683
+ "mfa": { "enforced": true, "enrolled": true, "method": "totp" },
684
+ "attributes": {
685
+ "department": "Security",
686
+ "geo_region": "US-East",
687
+ "ip_cidr": "198.51.100.0/24",
688
+ "network_trust": "corporate",
689
+ "device_posture": "managed_compliant",
690
+ "risk_score": 75
691
+ },
692
+ "scenario_id": "scenario_dormant_high_privilege_account"
693
+ },
694
+ {
695
+ "id": "usr_020",
696
+ "uuid": "8a4f6c2b-0e5d-4b3f-807b-6f5d8e2c4a20",
697
+ "email": "breakglass.oncall@example.com",
698
+ "org_id": "org_enterprise_01",
699
+ "org_role": "member",
700
+ "workspace_roles": { "ws_prod_eu": "super_admin" },
701
+ "effective_permissions": ["*:*:*"],
702
+ "denied_permissions": [],
703
+ "status": "active",
704
+ "employment_type": "full_time",
705
+ "access_expires_at": "2026-09-27T20:00:00Z",
706
+ "last_login_at": "2026-09-27T19:30:00Z",
707
+ "mfa": { "enforced": true, "enrolled": true, "method": "hardware_key" },
708
+ "attributes": {
709
+ "department": "Engineering",
710
+ "geo_region": "EU-Central",
711
+ "ip_cidr": "198.51.100.0/24",
712
+ "network_trust": "corporate",
713
+ "device_posture": "managed_compliant",
714
+ "risk_score": 30
715
+ },
716
+ "scenario_id": "scenario_jit_elevation_expired"
717
+ },
718
+ {
719
+ "id": "usr_021",
720
+ "uuid": "9b5a7d3c-1f6e-4c4a-818c-7a6e9f3d5b21",
721
+ "email": "customer.victim@example.com",
722
+ "org_id": "org_enterprise_01",
723
+ "org_role": "member",
724
+ "workspace_roles": { "ws_prod_eu": "member" },
725
+ "effective_permissions": ["data:records:read"],
726
+ "denied_permissions": [],
727
+ "status": "active",
728
+ "employment_type": "full_time",
729
+ "access_expires_at": null,
730
+ "last_login_at": "2026-09-28T07:45:00Z",
731
+ "mfa": { "enforced": true, "enrolled": true, "method": "totp" },
732
+ "impersonation": {
733
+ "is_impersonated": true,
734
+ "impersonated_by": "usr_001",
735
+ "impersonation_reason": "ticket_audit_investigation"
736
+ },
737
+ "attributes": {
738
+ "department": "Operations",
739
+ "geo_region": "EU-Central",
740
+ "ip_cidr": "198.51.100.0/24",
741
+ "network_trust": "corporate",
742
+ "device_posture": "managed_compliant",
743
+ "risk_score": 20
744
+ },
745
+ "scenario_id": "scenario_impersonation_session"
746
+ },
747
+ {
748
+ "id": "usr_022",
749
+ "uuid": "0c6b8e4d-2a7f-4d5b-829d-8b7f0a4e6c22",
750
+ "email": "twin.consultant@example.com",
751
+ "org_id": "org_enterprise_02",
752
+ "org_role": "member",
753
+ "workspace_roles": { "ws_client_us": "workspace_editor" },
754
+ "effective_permissions": [
755
+ "data:records:read",
756
+ "data:records:write"
757
+ ],
758
+ "denied_permissions": [],
759
+ "status": "active",
760
+ "employment_type": "contractor",
761
+ "access_expires_at": "2026-11-30T00:00:00Z",
762
+ "last_login_at": "2026-09-27T16:00:00Z",
763
+ "mfa": { "enforced": true, "enrolled": true, "method": "totp" },
764
+ "attributes": {
765
+ "department": "Consulting",
766
+ "geo_region": "US-East",
767
+ "ip_cidr": "192.0.2.0/24",
768
+ "network_trust": "vpn",
769
+ "device_posture": "managed_compliant",
770
+ "risk_score": 15
771
+ },
772
+ "scenario_id": "scenario_cross_tenant_identity"
773
+ },
774
+ {
775
+ "id": "usr_023",
776
+ "uuid": "1d7c9f5e-3b8a-4e6c-830e-9c8a1b5f7d23",
777
+ "email": "pending.hire@example.com",
778
+ "org_id": "org_enterprise_01",
779
+ "org_role": "member",
780
+ "workspace_roles": { "ws_prod_eu": "member" },
781
+ "effective_permissions": [],
782
+ "denied_permissions": ["*:*:*"],
783
+ "status": "pending_invite",
784
+ "employment_type": "full_time",
785
+ "access_expires_at": null,
786
+ "last_login_at": null,
787
+ "mfa": { "enforced": true, "enrolled": false, "method": "none" },
788
+ "attributes": {
789
+ "department": "Engineering",
790
+ "geo_region": "EU-Central",
791
+ "ip_cidr": "203.0.113.0/24",
792
+ "network_trust": "public",
793
+ "device_posture": "byod_unmanaged",
794
+ "risk_score": 50
795
+ },
796
+ "scenario_id": "scenario_pending_invite_unactivated"
797
+ },
798
+ {
799
+ "id": "svc_024",
800
+ "uuid": "1e8d4a9f-5c0b-4e7a-8a61-7a3f4e2b8c24",
801
+ "email": "ci-runner@serviceaccount.example.com",
802
+ "org_id": "org_enterprise_01",
803
+ "org_role": "workspace_editor",
804
+ "workspace_roles": { "ws_staging": "workspace_editor" },
805
+ "effective_permissions": [
806
+ "data:records:read",
807
+ "data:records:write"
808
+ ],
809
+ "denied_permissions": ["infra:runners:delete"],
810
+ "status": "active",
811
+ "employment_type": "service_account",
812
+ "access_expires_at": null,
813
+ "last_login_at": "2026-09-28T06:00:00Z",
814
+ "mfa": { "enforced": false, "enrolled": false, "method": "none" },
815
+ "service_account_credentials": {
816
+ "client_id": "sa_ci_runner_prod",
817
+ "client_secret_ref": "vault://secrets/ci-runner/staging-key"
818
+ },
819
+ "attributes": {
820
+ "department": "DevOps",
821
+ "geo_region": "US-East",
822
+ "ip_cidr": "192.0.2.0/24",
823
+ "network_trust": "corporate",
824
+ "device_posture": "server_hardened",
825
+ "risk_score": 5
826
+ },
827
+ "scenario_id": "scenario_machine_service_account"
828
+ },
829
+ {
830
+ "id": "svc_025",
831
+ "uuid": "2f9e5b0a-6d1c-4f8b-8b72-8b4a5f3c9d25",
832
+ "email": "legacy-sync@serviceaccount.example.com",
833
+ "org_id": "org_enterprise_01",
834
+ "org_role": "super_admin",
835
+ "workspace_roles": {},
836
+ "effective_permissions": ["*:*:*"],
837
+ "denied_permissions": [],
838
+ "status": "active",
839
+ "employment_type": "service_account",
840
+ "access_expires_at": null,
841
+ "last_login_at": "2026-09-28T01:10:00Z",
842
+ "mfa": { "enforced": false, "enrolled": false, "method": "none" },
843
+ "service_account_credentials": {
844
+ "client_id": "sa_legacy_sync_orphaned",
845
+ "client_secret_ref": "vault://secrets/sync/legacy-unrotated"
846
+ },
847
+ "attributes": {
848
+ "department": "IT",
849
+ "geo_region": "US-East",
850
+ "ip_cidr": "192.0.2.0/24",
851
+ "network_trust": "corporate",
852
+ "device_posture": "server_hardened",
853
+ "risk_score": 70
854
+ },
855
+ "scenario_id": "scenario_overprivileged_service_account"
856
+ }
857
+ ],
858
+ "authorization_test_cases": [
859
+ {
860
+ "case_id": "tc_001",
861
+ "description": "Global super admin performing unrestricted record read",
862
+ "principal": "usr_001",
863
+ "action": "data:records:read",
864
+ "resource": "res_rec_001",
865
+ "expected": "allow",
866
+ "reason": "principal_has_super_admin_wildcard"
867
+ },
868
+ {
869
+ "case_id": "tc_002",
870
+ "description": "Baseline editor writing to authorized production workspace",
871
+ "principal": "usr_002",
872
+ "action": "data:records:write",
873
+ "resource": "res_rec_001",
874
+ "expected": "allow",
875
+ "reason": "workspace_editor_role_allows_write"
876
+ },
877
+ {
878
+ "case_id": "tc_003",
879
+ "description": "Expired contractor attempting export on production workspace",
880
+ "principal": "usr_014",
881
+ "action": "data:records:export",
882
+ "resource": "res_rec_001",
883
+ "expected": "deny",
884
+ "reason": "principal_temporal_access_expired"
885
+ },
886
+ {
887
+ "case_id": "tc_004",
888
+ "description": "Separation-of-Duty conflict detection during approval action",
889
+ "principal": "usr_015",
890
+ "action": "finance:requests:approve",
891
+ "resource": "res_fin_001",
892
+ "expected": "deny",
893
+ "reason": "separation_of_duty_policy_violation"
894
+ },
895
+ {
896
+ "case_id": "tc_005",
897
+ "description": "MFA non-compliant administrator accessing critical security settings",
898
+ "principal": "usr_016",
899
+ "action": "security:settings:write",
900
+ "resource": "res_sec_001",
901
+ "expected": "deny",
902
+ "reason": "mfa_enforcement_required_for_administrative_actions"
903
+ },
904
+ {
905
+ "case_id": "tc_006",
906
+ "description": "Suspended user with active JWT session attempting record read",
907
+ "principal": "usr_017",
908
+ "action": "data:records:read",
909
+ "resource": "res_rec_001",
910
+ "expected": "deny",
911
+ "reason": "account_suspended_session_must_be_revoked"
912
+ },
913
+ {
914
+ "case_id": "tc_007",
915
+ "description": "Restricting workspace override demoting global admin to guest",
916
+ "principal": "usr_018",
917
+ "action": "data:records:write",
918
+ "resource": "res_rec_001",
919
+ "expected": "deny",
920
+ "reason": "workspace_demotion_override_and_explicit_deny"
921
+ },
922
+ {
923
+ "case_id": "tc_008",
924
+ "description": "Dormant administrator accessing audit telemetry after 90 days of inactivity",
925
+ "principal": "usr_019",
926
+ "action": "audit:events:read",
927
+ "resource": "res_audit_001",
928
+ "expected": "deny",
929
+ "reason": "dormant_account_policy_requires_reauthorization"
930
+ },
931
+ {
932
+ "case_id": "tc_009",
933
+ "description": "Expired JIT break-glass elevation attempting administrative bypass",
934
+ "principal": "usr_020",
935
+ "action": "data:records:write",
936
+ "resource": "res_rec_001",
937
+ "expected": "deny",
938
+ "reason": "jit_elevation_window_expired"
939
+ },
940
+ {
941
+ "case_id": "tc_010",
942
+ "description": "Cross-tenant identity accessing resources in an unassigned tenant",
943
+ "principal": "usr_022",
944
+ "action": "data:records:read",
945
+ "resource": "res_rec_001",
946
+ "expected": "deny",
947
+ "reason": "cross_tenant_isolation_violation_org_mismatch"
948
+ },
949
+ {
950
+ "case_id": "tc_011",
951
+ "description": "Pending invite user attempting resource access prior to activation",
952
+ "principal": "usr_023",
953
+ "action": "data:records:read",
954
+ "resource": "res_rec_001",
955
+ "expected": "deny",
956
+ "reason": "account_status_pending_activation"
957
+ },
958
+ {
959
+ "case_id": "tc_012",
960
+ "description": "Service account executing authorized automated staging runner task",
961
+ "principal": "svc_024",
962
+ "action": "data:records:write",
963
+ "resource": "res_rec_002",
964
+ "expected": "allow",
965
+ "reason": "service_account_holds_explicit_workspace_editor_role"
966
+ }
967
+ ]
968
+ }
synthetic-rbac-users.schema.json ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://www.aptdot.com/data/v1/synthetic-rbac-users.schema.json",
4
+ "title": "Aptdot SyntheticRBACUsersDataset",
5
+ "type": "object",
6
+ "required": ["metadata", "roles", "resources", "users", "authorization_test_cases"],
7
+ "properties": {
8
+ "metadata": {
9
+ "type": "object",
10
+ "required": [
11
+ "name",
12
+ "version",
13
+ "reference_time",
14
+ "generated_at",
15
+ "license",
16
+ "permission_grammar",
17
+ "wildcard_rules",
18
+ "resolution_precedence",
19
+ "dormancy_threshold_days",
20
+ "separation_of_duty_conflicts",
21
+ "total_users",
22
+ "total_roles",
23
+ "total_resources",
24
+ "total_test_cases",
25
+ "description"
26
+ ],
27
+ "properties": {
28
+ "name": { "type": "string" },
29
+ "version": { "type": "string" },
30
+ "reference_time": { "type": "string", "format": "date-time" },
31
+ "generated_at": { "type": "string", "format": "date-time" },
32
+ "license": { "type": "string", "format": "uri" },
33
+ "permission_grammar": { "type": "string" },
34
+ "wildcard_rules": { "type": "object" },
35
+ "resolution_precedence": { "type": "array", "items": { "type": "string" } },
36
+ "dormancy_threshold_days": { "type": "integer" },
37
+ "separation_of_duty_conflicts": {
38
+ "type": "array",
39
+ "items": { "type": "array", "items": { "type": "string" } }
40
+ },
41
+ "total_users": { "type": "integer", "minimum": 1 },
42
+ "total_roles": { "type": "integer", "minimum": 1 },
43
+ "total_resources": { "type": "integer", "minimum": 1 },
44
+ "total_test_cases": { "type": "integer", "minimum": 1 },
45
+ "description": { "type": "string" }
46
+ }
47
+ },
48
+ "roles": {
49
+ "type": "array",
50
+ "items": {
51
+ "type": "object",
52
+ "required": ["role", "inherits", "permissions", "description"],
53
+ "properties": {
54
+ "role": { "type": "string" },
55
+ "inherits": { "type": "array", "items": { "type": "string" } },
56
+ "permissions": { "type": "array", "items": { "type": "string" } },
57
+ "description": { "type": "string" }
58
+ }
59
+ }
60
+ },
61
+ "resources": {
62
+ "type": "array",
63
+ "items": {
64
+ "type": "object",
65
+ "required": ["id", "org_id", "type", "owner_id", "sensitivity", "data_residency"],
66
+ "properties": {
67
+ "id": { "type": "string" },
68
+ "org_id": { "type": "string" },
69
+ "workspace_id": { "type": ["string", "null"] },
70
+ "type": { "type": "string" },
71
+ "owner_id": { "type": "string" },
72
+ "sensitivity": { "type": "string", "enum": ["public", "internal", "confidential", "restricted", "critical"] },
73
+ "data_residency": { "type": "string" }
74
+ }
75
+ }
76
+ },
77
+ "users": {
78
+ "type": "array",
79
+ "items": {
80
+ "type": "object",
81
+ "required": [
82
+ "id",
83
+ "uuid",
84
+ "email",
85
+ "org_id",
86
+ "org_role",
87
+ "workspace_roles",
88
+ "effective_permissions",
89
+ "denied_permissions",
90
+ "status",
91
+ "employment_type",
92
+ "mfa",
93
+ "attributes",
94
+ "scenario_id"
95
+ ],
96
+ "properties": {
97
+ "id": { "type": "string" },
98
+ "uuid": { "type": "string", "format": "uuid" },
99
+ "email": { "type": "string", "format": "email" },
100
+ "org_id": { "type": "string" },
101
+ "org_role": { "type": "string" },
102
+ "workspace_roles": { "type": "object" },
103
+ "effective_permissions": { "type": "array", "items": { "type": "string" } },
104
+ "denied_permissions": { "type": "array", "items": { "type": "string" } },
105
+ "status": { "type": "string", "enum": ["active", "suspended", "pending_invite", "deactivated"] },
106
+ "employment_type": { "type": "string", "enum": ["full_time", "contractor", "service_account"] },
107
+ "access_expires_at": { "type": ["string", "null"], "format": "date-time" },
108
+ "last_login_at": { "type": ["string", "null"], "format": "date-time" },
109
+ "mfa": {
110
+ "type": "object",
111
+ "required": ["enforced", "enrolled", "method"],
112
+ "properties": {
113
+ "enforced": { "type": "boolean" },
114
+ "enrolled": { "type": "boolean" },
115
+ "method": { "type": "string", "enum": ["none", "totp", "hardware_key", "sms"] }
116
+ }
117
+ },
118
+ "attributes": {
119
+ "type": "object",
120
+ "required": ["department", "geo_region", "ip_cidr", "network_trust", "device_posture", "risk_score"],
121
+ "properties": {
122
+ "department": { "type": "string" },
123
+ "geo_region": { "type": "string" },
124
+ "ip_cidr": { "type": "string" },
125
+ "network_trust": { "type": "string", "enum": ["corporate", "vpn", "public"] },
126
+ "device_posture": { "type": "string", "enum": ["managed_compliant", "byod_unmanaged", "server_hardened"] },
127
+ "risk_score": { "type": "integer", "minimum": 0, "maximum": 100 }
128
+ }
129
+ },
130
+ "scenario_id": { "type": "string" }
131
+ }
132
+ }
133
+ },
134
+ "authorization_test_cases": {
135
+ "type": "array",
136
+ "items": {
137
+ "type": "object",
138
+ "required": ["case_id", "description", "principal", "action", "resource", "expected", "reason"],
139
+ "properties": {
140
+ "case_id": { "type": "string" },
141
+ "description": { "type": "string" },
142
+ "principal": { "type": "string" },
143
+ "action": { "type": "string" },
144
+ "resource": { "type": "string" },
145
+ "expected": { "type": "string", "enum": ["allow", "deny"] },
146
+ "reason": { "type": "string" }
147
+ }
148
+ }
149
+ }
150
+ }
151
+ }