Skip to content

Commit

Permalink
docs(authorization): correct policies example (datahub-project#8833)
Browse files Browse the repository at this point in the history
Co-authored-by: si-chakraborty <[email protected]>
Co-authored-by: John Joyce <[email protected]>
Co-authored-by: Aseem Bansal <[email protected]>
  • Loading branch information
4 people authored Sep 22, 2023
1 parent 930ad2c commit 7f43959
Showing 1 changed file with 22 additions and 19 deletions.
41 changes: 22 additions & 19 deletions docs/authorization/policies.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7f43959

Please sign in to comment.