# yaml-language-server: $schema=https://api.cerbos.dev/latest/cerbos/policy/v1/TestFixture/Principals.schema.json
---
principals:
  allan:
    id: "allan"
    roles:
      - user
    attr:
      type: human
      tenants:
        "4abb13a2-aa83-438e-9159-23be3909889d":
          tenant_uuid: "4abb13a2-aa83-438e-9159-23be3909889d"
          tenant_type: "account"
          roles:
            some_role:
              role: some_role
  alex:
    id: "alex"
    roles:
      - user
    attr:
      type: human
      tenants:
        "77c6c150-19f3-451f-a692-1a5d7ef30e85":
          tenant_uuid: "77c6c150-19f3-451f-a692-1a5d7ef30e85"
          tenant_type: "company_brand"
          roles:
            content_nr_ownership_sr_can_manage:
              role: content_nr_ownership_sr_can_manage
            content_nr_contribution_can_delete:
              role: content_nr_contribution_can_delete
  georgios:
    id: "georgios"
    roles:
      - user
    attr:
      type: human
      tenants:
        "77c6c150-19f3-451f-a692-1a5d7ef30e85":
          tenant_uuid: "77c6c150-19f3-451f-a692-1a5d7ef30e85"
          tenant_type: "company_brand"
          roles:
            content_nr_ownership_sr_can_manage:
              role: content_nr_ownership_sr_can_manage
            content_nr_contribution_can_manage:
              role: content_nr_contribution_can_manage
  kath:
    id: "kath"
    roles:
      - user
    attr:
      type: human
      tenants:
        "77c6c150-19f3-451f-a692-1a5d7ef30e85":
          tenant_uuid: "77c6c150-19f3-451f-a692-1a5d7ef30e85"
          tenant_type: "company_brand"
          roles:
            content_nr_ownership_sr_can_manage:
              role: content_nr_ownership_sr_can_manage
            content_nr_contribution_can_delete:
              role: content_nr_contribution_can_delete
  rob:
    id: "rob"
    roles:
      - user
    attr:
      type: human
      tenants:
        "77c6c150-19f3-451f-a692-1a5d7ef30e85":
          tenant_uuid: "77c6c150-19f3-451f-a692-1a5d7ef30e85"
          tenant_type: "company_brand"
          roles:
            content_nr_ownership_sr_can_view:
              role: content_nr_ownership_sr_can_view
            content_nr_contribution_can_view:
              role: content_nr_contribution_can_view

  account_admin:
    id: account_admin
    roles:
      - user
    attr:
      type: human
      tenants:
        "77c6c150-19f3-451f-a692-1a5d7ef30e85":
          tenant_uuid: "77c6c150-19f3-451f-a692-1a5d7ef30e85"
          tenant_type: "company_brand"
          roles:
            account_admin:
              role: account_admin
  contract_admin:
    id: contract_admin
    roles:
      - user
    attr:
      type: human
      tenants:
        "77c6c150-19f3-451f-a692-1a5d7ef30e85":
          tenant_uuid: "77c6c150-19f3-451f-a692-1a5d7ef30e85"
          tenant_type: "company_brand"
          roles:
            contract_admin:
              role: contract_admin
  account_edit:
    id: account_edit
    roles:
      - user
    attr:
      type: human
      tenants:
        "77c6c150-19f3-451f-a692-1a5d7ef30e85":
          tenant_uuid: "77c6c150-19f3-451f-a692-1a5d7ef30e85"
          tenant_type: "company_brand"
          roles:
            account_edit:
              role: account_edit
  contract_viewer:
    id: contract_viewer
    roles:
      - user
    attr:
      type: human
      tenants:
        "77c6c150-19f3-451f-a692-1a5d7ef30e85":
          tenant_uuid: "77c6c150-19f3-451f-a692-1a5d7ef30e85"
          tenant_type: "company_brand"
          roles:
            contract_viewer:
              role: contract_viewer

  machine_lambda_abacus_schedule_auto_add:
    id: b04a668c-53f9-47a4-a85d-90c6881ad242
    roles:
      - user
    attr:
      type: machine
      tenants: {}
