Instead of using *
, use ?
or .
instead.
When using the match and notMatch conditions, provide
#
to match a digit,?
for a letter,.
to match any character, and any other character to match that actual character. While match and notMatch are case-sensitive, all other conditions that evaluate a stringValue are case-insensitive. Case-insensitive alternatives are available in matchInsensitively and notMatchInsensitively.
{
"policyRule": {
"if": {
"allOf": [{
"not": {
"field": "name",
"notMatchInsensitively": "bi-????-rg"
}
},
{
"not": {
"field": "name",
"notMatchInsensitively": "dfy-???-rg"
}
}
]
},
"then": {
"effect": "deny"
}
}
}