docs(authorization): correct policies example (#8833)

Co-authored-by: si-chakraborty <si.chakraborty@adevinta.com>
Co-authored-by: John Joyce <john@acryl.io>
Co-authored-by: Aseem Bansal <asmbansal2@gmail.com>
This commit is contained in:
siladitya 2023-09-23 01:53:12 +02:00 committed by GitHub
parent 930ad2c29b
commit 7f4395945e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,28 +145,31 @@ For example, the following resource filter will apply the policy to datasets, ch
```json ```json
{ {
"resource": { "resources": {
"criteria": [ "filter": {
{ "criteria": [
"field": "resource_type", {
"values": [ "field": "RESOURCE_TYPE",
"dataset", "condition": "EQUALS",
"chart", "values": [
"dashboard" "dataset",
], "chart",
"condition": "EQUALS" "dashboard"
}, ]
{ },
"field": "domain", {
"values": [ "field": "DOMAIN",
"urn:li:domain:domain1" "values": [
], "urn:li:domain:domain1"
"condition": "EQUALS" ],
"condition": "EQUALS"
}
]
} }
] }
}
} }
``` ```
Where `resources` is inside the `info` aspect of a Policy.
Supported fields are as follows Supported fields are as follows