aws:PrincipalOrgPaths
An AWS condition key holding the caller's position in the organisation tree, so a policy can admit only accounts under a chosen organisational unit.
In more detail
The value is the organisation ID, the root ID and each OU ID down to the account's parent, separated by slashes and ending in a slash. Because of it, moving an account between OUs can grant or remove access, so placement becomes an access decision.
Example
o-a1b2c3d4e5/r-a1b2/ou-a1b2-wkld0001/*Related terms
- condition key — A value AWS attaches to every request, such as whether multi-factor authentication was used, that a policy Condition can test.
- organizational unit — A folder in an AWS organisation that groups accounts, so policies attached to it reach every account inside.
- aws:PrincipalOrgID — AWS condition keys that compare the organisation ID of the caller (PrincipalOrgID) or of the resource (ResourceOrgID) against a value.
Taught in
- AWS Organizations, Account Hierarchies & Azure Management Groups — Cloud Security & DevSecOps Engineering
- Service Control Policies & Guardrail Architecture — Cloud Security & DevSecOps Engineering