Back to all operators
ForAllValues:StringEqualsIgnoreCaseIfExists
ForAllValues:StringEqualsIgnoreCaseIfExists
compares a list of strings in a request to a list of strings in your policy. The comparison is case insensitive.
To match a request, the context key can be absent, but if it is present, all of the strings in the request must match at least one of the strings in your policy.
You can use policy variables in the value of this operator.
Warning
ForAllValues:StringEqualsIgnoreCaseIfExists is actively confusing. Any operator starting with ForAllValues ignores IfExists — it is not evaluated against the entire array, only against a single value at a time inside the ForAllValues loop. Use ForAllValues:StringEqualsIgnoreCase instead so your coworkers don't hate you.
ForAllValues:StringEqualsIgnoreCaseIfExists in an Allow Statement
Simulate in IAM Simulate| Policy Condition | Request Context | Result |
|---|---|---|
"ForAllValues:StringEqualsIgnoreCaseIfExists": { | aws:TagKeys: null | ✓ Allowed Assuming no explicit Deny elsewhere |
"ForAllValues:StringEqualsIgnoreCaseIfExists": { | aws:TagKeys: | − Not Allowed Statement does not apply |
"ForAllValues:StringEqualsIgnoreCaseIfExists": { | aws:TagKeys: | − Not Allowed Statement does not apply |
"ForAllValues:StringEqualsIgnoreCaseIfExists": { | aws:TagKeys: | ✓ Allowed Assuming no explicit Deny elsewhere |
"ForAllValues:StringEqualsIgnoreCaseIfExists": { | aws:TagKeys: | ✓ Allowed Assuming no explicit Deny elsewhere |
"ForAllValues:StringEqualsIgnoreCaseIfExists": { | aws:TagKeys: | − Not Allowed Statement does not apply |
ForAllValues:StringEqualsIgnoreCaseIfExists in a Deny Statement
Simulate in IAM Simulate| Policy Condition | Request Context | Result |
|---|---|---|
"ForAllValues:StringEqualsIgnoreCaseIfExists": { | aws:TagKeys: null | ✕ Denied |
"ForAllValues:StringEqualsIgnoreCaseIfExists": { | aws:TagKeys: | − Not Denied May be allowed by another statement |
"ForAllValues:StringEqualsIgnoreCaseIfExists": { | aws:TagKeys: | − Not Denied May be allowed by another statement |
"ForAllValues:StringEqualsIgnoreCaseIfExists": { | aws:TagKeys: | ✕ Denied |
"ForAllValues:StringEqualsIgnoreCaseIfExists": { | aws:TagKeys: | ✕ Denied |
"ForAllValues:StringEqualsIgnoreCaseIfExists": { | aws:TagKeys: | − Not Denied May be allowed by another statement |

