mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-13 11:06:30 +00:00
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:
parent
930ad2c29b
commit
7f4395945e
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user