iam-username-key-only-iam-users

Status: IN

The `aws:username` condition key is only available for IAM users — it is not available for the root user, IAM roles, anonymous requests, or IAM Identity Center credentials.

Source: entries/2026/03/11/IAM-latest-UserGuide-reference_policies_condition-keyshtml.md

JSON