AWS Certified CloudOps Engineer – Associate
How SCPs are evaluated and what they cannot restrict
The AWS Organizations User Guide says a service control policy (SCP) never grants permissions. It sets the maximum permissions for IAM users and roles in member accounts, including the root user. An action needs an Allow at every level down to the account, and a Deny at any level blocks it. The management account and service-linked roles are exempt.
What does an SCP do and not do?
An SCP is a guardrail. The effective permissions are the intersection of what the SCPs allow and what identity-based and resource-based policies allow. A user with no IAM permission policy has no access even when the SCPs allow everything.
If an SCP blocks an action, a user or role in the account cannot use it, even with the AdministratorAccess policy attached. The member account's root user is restricted too.
SCPs are available only in an organization with all features enabled. They affect only principals managed by accounts in the organization, not users from outside accounts who are granted access by a resource-based policy.
How are Allow and Deny evaluated across levels?
For a permission to be allowed in an account, there must be an explicit Allow at every level in the direct path: the root, each OU, and the account itself. Evaluation is deny by default, so a level with no matching Allow blocks the action.
That is why AWS Organizations attaches the managed SCP FullAWSAccess to every root, OU and account when it is created. If it is removed at some level and not replaced with another policy that has allowed actions, every action from the accounts under that level fails. An SCP that contains only a Deny statement does not count as an Allow.
A Deny works the other way: an explicit Deny in any SCP on the path, at the root, an OU or the account, blocks the action for everything beneath it, whatever is allowed elsewhere.
To build an allow list, replace FullAWSAccess with an SCP that allows only chosen services. New AWS services then stay blocked until someone adds them.
What can an SCP not restrict?
SCPs have no effect on users or roles in the management account. They do apply to member accounts that are designated as delegated administrators.
SCPs do not affect any service-linked role. An action that a service performs with its service-linked role continues even when an SCP denies that action to the account's users and roles.
A few tasks are also exempt, such as registering for the Enterprise support plan as the root user. AWS recommends not attaching an SCP to the root of the organization without testing it first on an OU with a small number of accounts.
Where the exam catches people
- Believing an SCP grants permissions: it only limits them. IAM policies must still grant access.
- Detaching
FullAWSAccessand leaving a Deny-only SCP: with no Allow at that level, every action from those accounts fails. - Expecting an SCP to stop a service-linked role, for example Auto Scaling terminating instances: SCPs do not affect service-linked roles.
- Believing an SCP at the root restricts the management account: SCPs affect member accounts only.
- Believing a delegated administrator account is exempt like the management account: it is a member account, so SCPs apply.