{
  "version": "2026-11-10",
  "fictional": true,
  "status": "example_to_adapt_not_authorisation",
  "publisher": "rootzero",
  "language": "en",
  "application": "Invoice Demo",
  "environment": "dedicated_test_environment",
  "baseUrl": "https://api.example.invalid/v1",
  "accounts": [
    {
      "id": "viewerA",
      "role": "viewer",
      "tenant": "tenantA"
    },
    {
      "id": "editorA",
      "role": "editor",
      "tenant": "tenantA"
    },
    {
      "id": "adminA",
      "role": "admin",
      "tenant": "tenantA"
    },
    {
      "id": "viewerB",
      "role": "viewer",
      "tenant": "tenantB"
    }
  ],
  "resources": [
    {
      "id": "invoiceA",
      "tenant": "tenantA"
    },
    {
      "id": "invoiceB",
      "tenant": "tenantB"
    }
  ],
  "expectedPermissions": [
    {
      "id": "C01",
      "account": "viewerA",
      "resource": "invoiceA",
      "operation": "readInvoice",
      "expected": "allow"
    },
    {
      "id": "C02",
      "account": "viewerA",
      "resource": "invoiceB",
      "operation": "readInvoice",
      "expected": "deny"
    },
    {
      "id": "C03",
      "account": "viewerB",
      "resource": "invoiceB",
      "operation": "readInvoice",
      "expected": "allow"
    },
    {
      "id": "C04",
      "account": "viewerB",
      "resource": "invoiceA",
      "operation": "readInvoice",
      "expected": "deny"
    },
    {
      "id": "C05",
      "account": "editorA",
      "resource": "invoiceA",
      "operation": "updateInvoice",
      "expected": "allow"
    },
    {
      "id": "C06",
      "account": "viewerA",
      "resource": "invoiceA",
      "operation": "updateInvoice",
      "expected": "deny"
    },
    {
      "id": "C07",
      "account": "adminA",
      "resource": "invoiceA",
      "operation": "updateInvoice",
      "expected": "allow"
    },
    {
      "id": "C08",
      "account": "adminA",
      "resource": "invoiceB",
      "operation": "updateInvoice",
      "expected": "deny"
    }
  ],
  "accessToAgree": [
    "authentication",
    "session_renewal",
    "MFA_or_SSO",
    "network_access"
  ],
  "constraintsToAgree": [
    "test_window",
    "stop_contact",
    "rate_limits",
    "permitted_writes",
    "data_cleanup"
  ],
  "excludedInThisExample": [
    "real_payments",
    "messages_to_real_people",
    "production_data",
    "third_party_services"
  ],
  "evidenceTemplate": {
    "caseId": "C02",
    "observedResult": "not_tested",
    "account": "viewerA",
    "resource": "invoiceB",
    "expected": "deny",
    "requestAndResponse": "record_and_redact_during_an_authorised_test",
    "limitation": "no_live_test_performed"
  },
  "reference": "https://api-security.owasp.org/editions/2023/en/0xa1-broken-object-level-authorization/"
}
