https://cerbos.dev logo
#community
Title
# community
a

ANILA SOMAN

05/08/2023, 12:04 PM
Hi - is it possible to add multiple roles in a resource policy example - apiVersion: api.cerbos.dev/v1 resourcePolicy: version: "default" resource: "CreateOrg" rules: - actions: - * effect: EFFECT_ALLOW roles: - admin_mgmt - user_mgmt - hr_mgmt
a

Aldin Kiselica

05/08/2023, 12:12 PM
Hey! 🙂 writing a policy by using either multiple
roles
or
derivedRoles
both should work just fine. You can check one of our playground demos, eg. Expenses System to see it in action
a

ANILA SOMAN

05/08/2023, 12:19 PM
@Aldin Kiselica Thanks for the quick reply
a

Aldin Kiselica

05/08/2023, 12:24 PM
Glad to help
5 Views