How to design AWS SCP policy exceptions safely
To make an exception to an AWS Organizations service control policy (SCP), narrow the **explicit Deny** so it does not match the approved exception. For example, a condition on `aws:PrincipalArn` can exempt one exact recovery-role ARN from one restricted action. That carve-out applies only to that Deny statement; it does not grant permission. Another SCP, an IAM or resource-policy denial, or missing permissions on the role can still block the request. ([AWS: SCP evaluation](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps_evaluation.html), [AWS: SCP syntax](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps_syntax.html))
How to design AWS SCP policy exceptions safely
To make an exception to an AWS Organizations service control policy (SCP), narrow the explicit Deny so it does not match the approved exception. For example, a condition on aws:PrincipalArn can exempt one exact recovery-role ARN from one restricted action. That carve-out applies only to that Deny statement; it does not grant permission. Another SCP, an IAM or resource-policy denial, or missing permissions on the role can still block the request. (AWS: SCP evaluation, AWS: SCP syntax)
This guide reflects AWS Organizations and IAM documentation checked in November 2026. It explains how to design and validate principal exceptions in an SCP deny-list strategy. It does not cover exception syntax for Azure Policy, Google Cloud Organization Policy, AWS resource control policies (RCPs), or other systems. “Exception” here means either an explicit carve-out in a policy statement or an entity that is outside the policy’s scope; these are different.
Why does an SCP exception need its own design?
An SCP limits the maximum permissions available to IAM users and roles, as well as the root user, in member accounts. An SCP does not grant permission. A request needs both an SCP path that permits it and an allow from an IAM or resource-based policy. Conversely, one explicit Deny in an SCP attached anywhere on the request’s organization path takes precedence over an Allow lower in the OU or account. Adding an Allow for an exception role therefore does not override a parent SCP’s Deny. (AWS: SCP evaluation, AWS: SCP syntax and elements)
SCPs also have important scope boundaries. They do not apply to users or roles in an organization’s management account, nor to AWS service-linked roles. These are outside the scope of SCP restrictions rather than exceptions created inside a particular Deny statement. The root user in a member account is still subject to SCPs, so do not treat it as a general administrator bypass. (AWS: Using Organizations for security, AWS: Organizations and service-linked roles)
How can one role be excluded from a Deny?
SCPs do not support Principal or NotPrincipal. To make a statement depend on the caller, compare aws:PrincipalArn in a Condition. For requests signed with an IAM role’s credentials, this key contains the IAM role ARN, not the role-session ARN. Do not use an arn:aws:sts::...:assumed-role/... session ARN as the exception value. (AWS: SCP syntax, AWS: Global condition context keys)
The following is an illustrative example. It generally denies ec2:TerminateInstances in a member account, but excludes that account’s approved recovery role from this one SCP statement.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "DenyInstanceTerminationExceptRecoveryRole",
"Effect": "Deny",
"Action": "ec2:TerminateInstances",
"Resource": "*",
"Condition": {
"ArnNotEquals": {
"aws:PrincipalArn": "arn:aws:iam::123456789012:role/ApprovedRecovery"
}
}
}
]
}When the request’s aws:PrincipalArn does not match the role ARN, the Deny applies. The approved role is excluded from this statement’s condition, but does not gain termination permission from it. The role still needs IAM permission, and other SCPs and resource policies must also allow the request. A different SCP that explicitly denies the same action is not overridden by this carve-out.
The account ID and role name above are illustrative. Use the exact account and role ARN in a real policy, including any IAM role path. A broad pattern such as arn:aws:iam::*:role/*Recovery* can unintentionally exempt similarly named roles in other accounts. AWS recommends ARN condition operators rather than generic string operators when comparing aws:PrincipalArn. (AWS: Global condition context keys)
Should you create a role exception or a separate OU?
Choose based on how broad and long-lived the exception needs to be.
| Need | Suitable approach | Considerations |
|---|---|---|
| Most principals in an OU must remain restricted, while one automation or recovery role needs one or two actions | Add a precise aws:PrincipalArn carve-out to the SCP Deny | Keep the role trust and IAM permissions narrow; check that the exception does not bypass other Deny statements |
| An account or workload needs a different policy set for the long term | Use a dedicated OU with separately attached policies | When moving accounts, review destination controls and any configuration left from the former OU; treat the move as a governed change |
| A temporary incident-response exception is needed | Apply a narrowly scoped role exception through an approved change and schedule its expiry and removal | Record the owner, reason, action scope, expiry time, and confirmation of removal |
A Deny attached to a parent OU propagates to member accounts below it. You cannot create a per-account exception to that Deny merely by attaching a separate Allow to a child account. Adjust the conditions in the Deny itself or redesign the policy inheritance path. For broad, persistent exceptions, a separate OU can make the different policy boundary easier to review than accumulating bypass roles, but OU separation does not guarantee protection by itself: validate the policies attached to the new OU and the effects of account moves. (AWS: SCP evaluation)
How do you verify that an exception behaves as intended?
Do not attach a new policy to the root or production OU first. Test it in an isolated OU with representative accounts, checking both actions that should be blocked and those that should work. AWS recommends testing SCP impact thoroughly, then moving from narrower OUs to broader scopes. IAM service-last-accessed data and CloudTrail API events can help identify normal usage before changing a policy. (AWS: SCP examples and testing guidance, AWS security guidance for Organizations)
**Confirm the principal and policy path.** Record the test role’s actual IAM ARN, target account, and every SCP attached from the root through the account.
**Test a denied case.** Use an ordinary role to confirm the target action is denied. Separately confirm that the exception role still fails if it lacks an IAM permission it needs.
**Check for other denials.** Review parent and child SCPs, IAM policies, permissions boundaries, session policies, resource policies, and service-specific restrictions. A carve-out in this SCP does not mean the entire authorization decision allows the request.
**Operate the exception.** Record its reason, approver, owner, permitted actions, expiry, and removal method. Monitor the exception role’s use in CloudTrail and periodically reapprove its need.
**Prepare recovery before rollout.** Verify the test results and attachment path, and identify who can reverse the policy if expected work is blocked.
Before relying on a policy simulator, check that it supports the relevant condition key and SCP evaluation context. A simulation alone does not prove that every real account call path has been tested. Confirm service responses and CloudTrail events from a test account as well. (AWS security guidance for Organizations)
Which common assumptions should you avoid?
**“Adding an Allow creates an exception to a Deny.”** It does not. An explicit SCP Deny takes precedence. Change the Deny’s own conditions so it does not match the intended role.
**“The exception role’s request will succeed.”** Not necessarily. The carve-out removes one SCP ceiling; it does not grant the IAM or resource-policy permission needed to act.
**“Administrators or root can bypass SCPs.”** SCPs also affect member-account root and administrator roles. The management account and service-linked roles are outside SCP scope, but should not be treated as general emergency bypasses for member accounts.
**“A wildcard makes role exceptions convenient.”** A broad ARN pattern can exempt unintended roles. Prefer one exact role ARN and restrict its trust policy and role-management permissions.
**“Exceptions can remain indefinitely.”** Temporary migration or response exceptions can outlive their purpose. Track an owner, expiry, and removal check.
An SCP exception is not a temporary release for everyone; it is an explicit narrowing of when a Deny applies. Limit it to a specific role, action, and period; check the rest of the authorization path; and verify it in a test OU. That preserves both the organization’s policy boundary and a practical recovery path.
References
[AWS: SCP evaluation](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps_evaluation.html)
[AWS: SCP syntax](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps_syntax.html)
[AWS: SCP examples and testing guidance](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps_examples.html)
[AWS: Global condition context keys](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html)
[AWS: Organizations and service-linked roles](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html)
[AWS security guidance: Organizations policy evaluation and design](https://docs.aws.amazon.com/prescriptive-guidance/latest/security-reference-architecture/organizations-security.html)