"The root user is my admin account." It's a common habit, and a dangerous one. The root user is the one identity in an AWS account that can do anything, including closing the account, and IAM policies inside the account can't restrict it. If those credentials are stolen, nothing stands between the attacker and everything you run. So the goal is simple: protect root, then almost never use it.
What the root user is
When you create an AWS account, you start with a single sign-in identity that has complete access to every service and resource in it. That's the root user. It signs in with the email address and password used to create the account.
Every account has one, and you can't delete it. What you can do is make it very hard to misuse.
Lock it down in three steps
1. Turn on multi-factor authentication (MFA). AWS now requires MFA for the root user of every account type, but you still have to register a device. Prefer phishing-resistant options: a passkey or a FIDO security key. You can register more than one MFA device for root, so add a backup and store it somewhere safe. Losing the only device means a slow recovery process.
2. Don't create root access keys. Access keys let scripts and tools act as an identity. For root, that means a text string with full power over the account, sitting in a file. AWS strongly recommends never creating them. If an old one exists, delete it. The IAM console and the credential report show whether one is present.
3. Stop using root for daily work. Create an administrative identity instead, ideally through IAM Identity Center, and work with that. Keep root for the short list of tasks that really need it.
Two more habits help: use a group email address owned by the business (not one person's inbox) for the root user, and set an alert so every root sign-in is noticed.
What only root can do
The list is short. In a standalone account, examples include:
- changing the root user's email address or password
- closing the account
- restoring permissions when the only IAM administrator locked themselves out
- some billing and tax settings
Everything else, including day-to-day administration, should be done with other identities. A common mistake is keeping root "handy" in a shared password manager that half the team can open. Treat it like the master key to the building, not the key you carry every day.
Many accounts: centralize root access
If you manage several accounts with AWS Organizations, you can enable centralized root access. The management account (or a delegated administrator) can then remove root credentials from member accounts entirely: no password, no access keys, no MFA to manage. Nobody can sign in as root in those accounts, and the few root-only tasks, such as unlocking an S3 bucket with a broken policy, are done through short, scoped privileged sessions instead. New member accounts created in the organization start without root credentials.
The management account's own root user still needs the full treatment: strong password, MFA, no keys.
Where AI fits
AI agents can now run commands and call AWS APIs on their own. The worst possible setup is an agent holding root credentials: one bad prompt, one poisoned document or one wrong guess, and there is no policy that limits what happens next. Never give an agent, a script or an automation tool root access. Give it an IAM role scoped to the few actions it needs, so a mistake stays small.
Quick recap
- The root user can do anything, and IAM policies in the account can't limit it.
- Protect it with MFA (passkey or security key, plus a backup) and no access keys.
- Use it almost never; with AWS Organizations, remove root credentials from member accounts.