blob: b656302f550a0e4f91fcb4be83e8ae0cccf5b9e6 [file] [log] [blame]
{
"name" : "Operator policy set",
"policies" : [
{
"name" : "PolicyMatcher MUST NOT match this policy during this test.",
"target" : {
"name" : "When an operator reads an asset",
"resource" : {
"name" : "Asset",
"uriTemplate" : "/assets/{asset_id}",
"attributes" : [
{ "issuer" : "https://acs.attributes.int",
"name" : "group" }
]
},
"subject" : {
"name" : "Operator",
"attributes" : [
{ "issuer" : "https://acs.attributes.int",
"name" : "group" }
]
}
},
"conditions" : [
{ "name" : "is member of group",
"condition" : "match.any(subject.attributes('https://acs.attributes.int', 'group'), resource.attributes('https://acs.attributes.int', 'group'))" }
],
"effect" : "PERMIT"
},
{
"name" : "PolicyMatcher MUST match this policy during this test.",
"effect" : "DENY"
}
]
}