What does `aws:PrincipalOrgPaths` let you do?
IntermediateProductionIAM Best Practices
Answer
It matches the OU path of the calling account, so a resource policy can grant access to "any account in the Prod OU" instead of a fixed account list. New accounts in that OU get access automatically; accounts moved out lose it.
"Condition": {"ForAnyValue:StringLike": {
"aws:PrincipalOrgPaths": "o-abc123xyz/r-ab12/ou-ab12-prod1234/*"}}
More on IAM Best Practices
What does least privilege look like in practice, not in theory?BeginnerWhat are the IAM rules you enforce for humans?BeginnerHow do you design Identity Center permission sets for many teams?IntermediateHow does ABAC with Identity Center work, and when is it worth it?AdvancedWhen do you use permission boundaries in production?IntermediateHow do you remove long-lived access keys from an existing estate?Intermediate