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,19 +145,20 @@ For example, the following resource filter will apply the policy to datasets, ch
```json ```json
{ {
"resource": { "resources": {
"filter": {
"criteria": [ "criteria": [
{ {
"field": "resource_type", "field": "RESOURCE_TYPE",
"condition": "EQUALS",
"values": [ "values": [
"dataset", "dataset",
"chart", "chart",
"dashboard" "dashboard"
], ]
"condition": "EQUALS"
}, },
{ {
"field": "domain", "field": "DOMAIN",
"values": [ "values": [
"urn:li:domain:domain1" "urn:li:domain:domain1"
], ],
@ -165,8 +166,10 @@ For example, the following resource filter will apply the policy to datasets, ch
} }
] ]
} }
}
} }
``` ```
Where `resources` is inside the `info` aspect of a Policy.
Supported fields are as follows Supported fields are as follows