# yaml-language-server: $schema=https://api.cerbos.dev/latest/cerbos/policy/v1/TestFixture/Principals.schema.json
---
principals:
  rob:
    id: "rob-uuid"
    roles:
      - user
    attr:
      type: human
      tenants:
        "d25a4cd1-e820-45f2-be5c-56edcfeb8298":
          tenant_uuid: "d25a4cd1-e820-45f2-be5c-56edcfeb8298"
          tenant_type: "company_brand"
          roles:
            audience_development_admin:
              role: audience_development_admin

  olivia:
    id: "3604ff98-f825-4ea1-9f48-a7f56f413ec4"
    roles:
      - user
    attr:
      type: human
      tenants:
        "d25a4cd1-e820-45f2-be5c-56edcfeb8298":
          tenant_uuid: "d25a4cd1-e820-45f2-be5c-56edcfeb8298"
          tenant_type: "company_brand"
          roles:
            audience_development_admin:
              role: audience_development_admin
        "4abb13a2-aa83-438e-9159-23be3909889d":
          tenant_uuid: "4abb13a2-aa83-438e-9159-23be3909889d"
          tenant_type: "account"
          roles:
            audience_development_admin:
              role: audience_development_admin

  brian:
    id: "08fc2c19-43fb-4804-9249-d0992554997f"
    roles:
      - user
    attr:
      type: human
      tenants:
        "bad45218-68d8-42b6-b4ee-730ef9e16309":
          tenant_uuid: "bad45218-68d8-42b6-b4ee-730ef9e16309"
          tenant_type: "account"
          roles:
            audience_development_client:
              role: audience_development_client
        "4abb13a2-aa83-438e-9159-23be3909889d":
          tenant_uuid: "4abb13a2-aa83-438e-9159-23be3909889d"
          tenant_type: "account"
          roles:
            audience_development_admin:
              role: audience_development_client

  jordy:
    id: "a99ea45c-6841-4942-beac-d766f9c41071"
    roles:
      - user
    attr:
      type: human
      tenants:
        "gto35228-00d8-93c6-b4op-286ef3e79319":
          tenant_uuid: "gto35228-00d8-93c6-b4op-286ef3e79319"
          tenant_type: "account"
          roles:
            audience_development_analyst:
              role: audience_development_analyst
        "4abb13a2-aa83-438e-9159-23be3909889d":
          tenant_uuid: "4abb13a2-aa83-438e-9159-23be3909889d"
          tenant_type: "account"
          roles:
            audience_development_analyst:
              role: audience_development_analyst

  poordy:
    id: "subaccount only"
    roles:
      - user
    attr:
      type: human
      tenants:
        "gto35228-00d8-93c6-b4op-286ef3e79319-sub1":
          tenant_uuid: "gto35228-00d8-93c6-b4op-286ef3e79319-sub1"
          tenant_type: "subaccount"
          roles:
            audience_development_analyst:
              role: audience_development_analyst
  columbia_user_analyst:
    id: "columbia_user_analyst"
    roles:
      - user
    attr:
      type: human
      tenants:
        "columbia_tenant_uuid":
          tenant_uuid: "columbia_tenant_uuid"
          tenant_type: "account"
          roles:
            audience_development_analyst:
              role: audience_development_analyst
  columbia_user_client:
    id: "columbia_user_client"
    roles:
      - user
    attr:
      type: human
      tenants:
        "columbia_tenant_uuid":
          tenant_uuid: "columbia_tenant_uuid"
          tenant_type: "account"
          roles:
            audience_development_client:
              role: audience_development_client
  columbia_user_admin:
    id: "columbia_user_admin"
    roles:
      - user
    attr:
      type: human
      tenants:
        "columbia_tenant_uuid":
          tenant_uuid: "columbia_tenant_uuid"
          tenant_type: "account"
          roles:
            audience_development_admin:
              role: audience_development_admin
  columbia_user_no_audience_development_roles:
    id: "columbia_user_no_audience_development_roles"
    roles:
      - user
    attr:
      type: human
      tenants:
        "columbia_tenant_uuid":
          tenant_uuid: "columbia_tenant_uuid"
          tenant_type: "account"
          roles:
            content_reviewer:
              role: content_reviewer
  user_with_tenant_that_is_provider_for_joint_venture:
    id: "user_with_tenant_that_is_provider_for_joint_venture"
    roles:
      - user
    attr:
      type: human
      tenants:
        "only_a_provider_tenant_uuid":
          tenant_uuid: "only_a_provider_tenant_uuid"
          tenant_type: "account"
          roles:
            audience_development_admin:
              role: audience_development_admin
  client_user_with_account_32_tenant:
    id: "client_user_with_account_32_tenant"
    roles:
      - user
    attr:
      type: human
      tenants:
        "account_32_uuid":
          tenant_uuid: "account_32_uuid"
          tenant_type: "account"
          roles:
            audience_development_client:
              role: audience_development_client
  admin_user_with_account_32_tenant:
    id: "admin_user_with_account_32_tenant"
    roles:
      - user
    attr:
      type: human
      tenants:
        "account_32_uuid":
          tenant_uuid: "account_32_uuid"
          tenant_type: "account"
          roles:
            audience_development_admin:
              role: audience_development_admin
  admin_user_with_account_46_tenant:
    id: "admin_user_with_account_46_tenant"
    roles:
      - user
    attr:
      type: human
      tenants:
        "account_46_uuid":
          tenant_uuid: "account_46_uuid"
          tenant_type: "account"
          roles:
            audience_development_admin:
              role: audience_development_admin
  client_user_with_company_brand_1_tenant:
    id: "client_user_with_company_brand_1_tenant"
    roles:
      - user
    attr:
      type: human
      tenants:
        "company_brand_1":
          tenant_uuid: "company_brand_1"
          tenant_type: "company_brand"
          roles:
            audience_development_client:
              role: audience_development_client
  analyst_user_with_company_brand_1_tenant:
    id: "analyst_user_with_company_brand_1_tenant"
    roles:
      - user
    attr:
      type: human
      tenants:
        "company_brand_1":
          tenant_uuid: "company_brand_1"
          tenant_type: "company_brand"
          roles:
            audience_development_analyst:
              role: audience_development_analyst
  random_role_user:
    id: "random_role_user"
    roles:
      - user
    attr:
      type: human
      tenants:
        "account_32_uuid":
          tenant_uuid: "account_32_uuid"
          tenant_type: "account"
          roles:
            random_role:
              role: random_role
        "company_brand_1":
          tenant_uuid: "company_brand_1"
          tenant_type: "company_brand"
          roles:
            random_role:
              role: random_role
  international_bob:
    id: "international_bob"
    roles:
      - user
    attr:
      type: human
      tenants:
        "bad45218-68d8-42b6-b4ee-730ef9e16309":
          tenant_uuid: "bad45218-68d8-42b6-b4ee-730ef9e16309"
          tenant_type: "account"
          roles:
            audience_development_audience_manager:
              role: audience_development_audience_manager
        "4abb13a2-aa83-438e-9159-23be3909889d":
          tenant_uuid: "4abb13a2-aa83-438e-9159-23be3909889d"
          tenant_type: "account"
          roles:
            audience_development_audience_manager:
              role: audience_development_audience_manager
        "columbia_tenant_uuid":
          tenant_uuid: "columbia_tenant_uuid"
          tenant_type: "account"
          roles:
            audience_development_analyst:
              role: audience_development_audience_manager


  principal_in_hierarchies:
    id: principal_in_hierarchies
    roles:
      - user
    attr:
      type: human
      tenants:
        "parent_company_1":
          tenant_uuid: "parent_company_1"
          tenant_type: "parent_company"
          roles:
            audience_development_admin:
              role: audience_development_admin
        "d25a4cd1-e820-45f2-be5c-56edcfeb8298":
          tenant_uuid: "d25a4cd1-e820-45f2-be5c-56edcfeb8298"
          tenant_type: "company_brand"
          roles:
            audience_development_admin:
              role: audience_development_admin

  principal_in_hierarchies_but_no_roles:
    id: principal_in_hierarchies_but_no_roles
    roles:
      - user
    attr:
      type: human
      tenants:
        "parent_company_1":
          tenant_uuid: "parent_company_1"
          tenant_type: "parent_company"
          roles:
            not_a_role:
              role: not_a_role
        "d25a4cd1-e820-45f2-be5c-56edcfeb8298":
          tenant_uuid: "d25a4cd1-e820-45f2-be5c-56edcfeb8298"
          tenant_type: "company_brand"
          roles:
            also_not_a_role:
              role: also_not_a_role
