# NotAction

Facts read 16 Nov 2026. Page reviewed 16 Nov 2026.

NotAction is a policy element that matches every action except the ones listed. With Effect Allow it grants everything else, including actions AWS adds later, and with Deny it denies everything else. A statement uses either Action or NotAction, never both. The workbench reports Allow with NotAction as a high-severity finding.

## An example, sourced

AWS describes NotAction as an advanced element that explicitly matches everything except the listed actions, and warns that NotAction with Allow could grant more permissions than intended. Its example NotAction of iam:* with Resource star matches 22,366 actions in the 16 Nov 2026 reference.

## Why it matters here

The count behind a NotAction statement changes without any edit to the policy, so a reading should carry the date of the reference used.

## Related pages

- [Amazon Resource Name: meaning and an example](/glossary/arn/)
- [External ID: meaning and an example](/glossary/external-id/)
- [Confused deputy problem: meaning and an example](/glossary/confused-deputy-problem/)
- [All of them](/glossary/)

## Sources

- https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_notaction.html (read 16 Nov 2026)

Last reviewed 16 Nov 2026. Canonical: https://iampolicygenerator.com/glossary/notaction/

This site is not affiliated with Amazon Web Services. AWS service and product names are used only to describe AWS services.
