Stop 04 · IAM & Account SecurityTopics · 2/9

Root User vs IAM Users

Part of the AWS Roadmap

In short

Every AWS account has one all-powerful identity that no policy inside the account can limit. Knowing what root is for, and what it is not for, is the first thing any security reviewer checks.

The root user is the identity created with the account and has full, unrestricted access, including billing and account closure. AWS recommends locking it away with MFA and using other identities for daily work.

The jaadu locks a big ornate master key in a glass case in a building lobby while handing small plain keys to three residents waiting by the lift.

Think of it like this

Building owner vs flat keys

The owner of an apartment building holds the deed and a master key. Residents get keys only to their own flat. The owner signs papers at the registrar once in a while but doesn't walk around with the master key. Root is the owner, IAM identities are the residents.

Watch it happen

Root user vs IAM identities

Root user

  • Created with the account, signs in with the account email
  • Full access that IAM policies in the account cannot restrict
  • Needed for a few tasks like closing the account or changing root email
  • Should have MFA and no access keys

IAM users, roles and Identity Center users

  • Created by an admin, start with no permissions
  • Get only what their policies allow
  • Used for all daily console and CLI work
  • Can be removed or limited at any time

Use root rarely and deliberately. Do everything else with identities whose permissions you can see, limit and revoke.

The big ideas

What you need to know

Root-only tasks

Changing the root email or password, closing the account and some billing and support settings need root.

No root keys

Root access keys give unlimited programmatic access. If any exist, delete them.

Default deny for IAM

A new IAM user can do nothing until a policy allows it. That is a feature, not a bug.

Central root management

In AWS Organizations, the management account can remove root credentials from member accounts and perform root tasks centrally.

See it in code

Walk through the code

bash
1# Run as an admin identity, never as root2aws iam get-account-summary \3  --query "SummaryMap.{RootMFA:AccountMFAEnabled,RootKeys:AccountAccessKeysPresent,Users:Users}"4 5# Generate and read the credential report (one row per user, root first)6aws iam generate-credential-report7aws iam get-credential-report --query Content --output text | base64 --decode | head -3

1/3RootMFA should be 1, RootKeys should be 0.

Two quick audit checks: does root have MFA and no keys, and what does the credential report say about every identity?

Save yourself the pain

Common mistakes

Oops

Sharing the root password in a team chat so everyone can 'get things done'.

Do this instead

Give each person their own identity with the permissions they need. Root stays with one or two owners plus MFA.

Oops

Assuming an IAM user with AdministratorAccess is exactly the same as root.

Do this instead

It is close, but root-only tasks still need root, and an admin can be limited by SCPs and boundaries while root of a standalone account cannot.

Your mission

Audit your root user

~15 min

Quick check

Which is the right way to give a new developer access to your AWS account?

Go deeper

  1. 1List the few tasks that genuinely require the root user, using the AWS documentation.
  2. 2Make sure the root user has no access keys.
  3. 3Create an administrator identity for yourself and stop using root for daily tasks.

More topics at this stop

Stuck on this topic? Ask an Insider

Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.

Download
InsideEdge