Title
#help
a

ANILA SOMAN

11/10/2022, 8:07 PM
hi, i have tried to put policies and getting message with uploaded 1 but while trying to get the policies its empty
Alex Olivier (Cerbos)

Alex Olivier (Cerbos)

11/10/2022, 8:13 PM
Is your policy a resource policy? If so the command should be get resource_policies
a

ANILA SOMAN

11/10/2022, 8:15 PM
---
apiVersion: <http://api.cerbos.dev/v1|api.cerbos.dev/v1>
resourcePolicy:
version: "default"
resource: "contact"
rules:
- actions:
- read
effect: EFFECT_ALLOW
roles:
- user
- actions:
- "*"
effect: EFFECT_ALLOW
roles:
- admin
principalPolicy:
principal: user10
version: "dev"
rules:
- resource: contact
actions:
- name: admin_access
action: "*"
effect: EFFECT_ALLOW
i am using two policies
Alex Olivier (Cerbos)

Alex Olivier (Cerbos)

11/10/2022, 8:16 PM
Ah Cerbos requires one policy type per file
8:16 PM
In this case it’s only loading the first one - we can do a better job making that clear in the messages
a

ANILA SOMAN

11/10/2022, 8:17 PM
cool. Thank you let me try with that