Hello, :wave: in a condition, can I evaluate a fie...
# help
f
Hello, šŸ‘‹ in a condition, can I evaluate a field in both
attr
? instead of using the ID of the principal? I donā€™t really get why I am getting denied šŸ¤” I wanna check the principal belongs to the same organization as the principal Resource:
Copy code
apiVersion: api.cerbos.dev/v1
resourcePolicy:
  version: "default"
  resource: "audience_definition"
  importDerivedRoles:
    - common_roles
  rules:
    - actions: ["*"]
      effect: EFFECT_ALLOW
      derivedRoles:
        - Tenant
Edit: make sure the resource name in the YAML is the same in the playground resource šŸ˜…
āœ… 1
o
Hello, šŸ‘‹ Do you have a resource policy defined for the
audience
kind?
f
šŸ¤¦
ā€œHello darkness my old friendā€ Thanks haha didnā€™t spot the naming was different šŸ™‚