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
{
"resource": {
"criteria": [
{
"field": "resource_type",
"values": [
"dataset",
"chart",
"dashboard"
],
"condition": "EQUALS"
},
{
"field": "domain",
"values": [
"urn:li:domain:domain1"
],
"condition": "EQUALS"
"resources": {
"filter": {
"criteria": [
{
"field": "RESOURCE_TYPE",
"condition": "EQUALS",
"values": [
"dataset",
"chart",
"dashboard"
]
},
{
"field": "DOMAIN",
"values": [
"urn:li:domain:domain1"
],
"condition": "EQUALS"
}
]
}
]
}
}
}
```
Where `resources` is inside the `info` aspect of a Policy.
Supported fields are as follows