Skip to content
Cloud Governance Tools

Prevent root credentials management in member accounts

Prevent root credentials management in member accounts is an AWS guardrail written in service control policies. Denies all actions for the member account root user unless the session was created with sts:AssumeRoot (the aws:AssumedRoot key is not null), so root credentials are managed centrally from the management account.

More identity and privilege guardrails ยท About Service control policies

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Deny",
      "Action": "*",
      "Resource": "*",
      "Condition": {
        "ArnLike": {
          "aws:PrincipalArn": [
            "arn:aws:iam::*:root"
          ]
        },
        "Null": {
          "aws:AssumedRoot": "true"
        }
      }
    }
  ]
}
Blocks
Denies all actions for the member account root user unless the session was created with sts:AssumeRoot (the aws:AssumedRoot key is not null), so root credentials are managed centrally from the management account.
Breaks
Direct root user sign-in in a member account can no longer perform actions; the repository README notes the SCP restricts the member account root user and has no effect on the management account. (source)
Test before applying
As for every Service control policies guardrail: how to test before enforcing
Mechanism
Service control policies (SCPs): IAM users, IAM roles and the root user in member accounts; not the management account and not service-linked roles.
Taken from
open source set, MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE

What the policy text names

It names 1 action or pattern: *. Its conditions test aws:PrincipalArn, aws:AssumedRoot.

What the source says

aws:AssumedRoot":"true (read 10 Nov 2026).

On what it breaks: "An SCP restricts permissions for IAM users and roles in member accounts, including the member account's root user. SCPs have no effect on users or roles in the management account."

Sources

  1. Prevent root credentials management in member accounts, read 10 Nov 2026
  2. What it breaks, read 10 Nov 2026
  3. How to test it first, read 10 Nov 2026

Last reviewed 16 Nov 2026.