AWS Identity and Access Management (IAM) is the service that controls who gets into your AWS account and what they can do inside it. Without IAM, anyone who got into the account could do everything, from seeing your customers' data to deleting your servers. Deciding who gets in and what they do is on your side of the shared responsibility model, so configuring IAM is your job and not AWS's.
IAM controls two things, authentication and authorization. Authentication is proving who you are, for example with a password and MFA, and authorization is what you are allowed to do once you are inside. For example, in an online store, the person who packs orders authenticates with their password just like the owner, but their authorization only lets them see the orders and not the payments. IAM has no additional cost, because what you pay for is what those identities use in other services.
What identities does an account have?

An identity is anything AWS recognizes by name and gives permissions to: a person, a team of people or a program. The root user isn't created in IAM, because it is the identity the account is born with. You create the other three identities inside IAM, and you attach policies to each one, which are the documents where permissions are written.
A full AWS account has these identities:
- The root user, which is the email address and password you signed up with and which has complete access to all the services and resources in the account, with no IAM policy limiting it inside the account.
- IAM users, which represent a person or an application with long-term credentials: a password for the console, access keys for the CLI or an SDK, or both.
- IAM groups, which bring users together to give them the same permissions and which don't sign in or have credentials.
- IAM roles, which have no password or keys and which are assumed by whoever needs them, such as a person, an EC2 instance (a virtual server in AWS) or a Lambda function (a piece of code that AWS runs for you), to receive temporary credentials.
For example, the store's owner opens the account with her email address, and that is the root user. Then she creates an IAM user for each employee, puts the three support employees in a group called Support, and gives the store's server a role so it can read the product photos.
The credentials of a user and those of a role differ in how long they last. The credentials of an IAM user keep working until someone deletes them, while the ones received by whoever assumes a role expire on their own. For example, if someone steals an IAM user's password, it works for them until you change it, but if they steal a role's credentials, those stop working for them when they expire.
Because the root user has complete access, AWS recommends not using it for everyday work and creating other identities for that work. The root user is left for a few tasks that no other identity can do. For example, the store's owner checks the day's orders with her IAM user and keeps the root user put away for those few tasks.
How are permissions assigned with groups?

A policy attached to a group is received by every user in that group. A user can be in several groups, and in that case gets the permissions of all of them combined. If someone changes teams, you take them out of one group and put them in another, without touching their permissions one by one. For example, if a support employee at the store moves to the sales team, you take her out of the Support group and put her in the Sales group, and at that moment she receives the sales permissions.
IAM groups have two limits. They can't be nested, because a group contains only users and never other groups, and there is also no group that automatically includes all the users in the account. For example, you can't put the Support group inside an Employees group, so if you want everyone to have a permission, you give it to each group.
Which tasks require the root user?
Some tasks can only be done after signing in as the root user. The full list is in the IAM guide, and those tasks include:
- Changing the root user's email address, password or access keys, which requires the root user in accounts that aren't in AWS Organizations, the service that groups several accounts of a company to manage them together.
- Closing the account, which requires the root user when the account isn't in AWS Organizations, and reopening it, which is possible if you closed it yourself and don't owe anything.
- Restoring permissions, which is needed when the only IAM administrator removed their own.
- Activating IAM access to the Billing and Cost Management console, which is the account's billing console, where the charges are shown.
- Editing or deleting an S3 bucket policy or an SQS queue policy, which only the root user can do when that policy denies access to everyone.
Any other task, such as creating a group or a role, is done with an IAM identity that has administrator permissions. That identity is the one AWS recommends using for everyday work. For example, if the store's owner wants to see how much AWS charged her this month from her IAM user, she first signs in once as the root user to turn on that access, and from then on she no longer needs the root user to check the bill.
How is the root user protected?
MFA (multi-factor authentication) asks for something more than the password to sign in, like a code that shows up on your phone. That way, someone who steals your password still can't get in, because they don't have your phone. AWS requires MFA by default for the root user, and your part is to register the device when the console asks you to while creating the account or signing in. Besides MFA, the IAM guide recommends protecting the root user with a strong password, without creating access keys for it and with an email address that doesn't depend on a single person. For example, the store can use an address like accounts@ that two partners receive, so the account isn't lost if one of them leaves.
IAM accepts several types of MFA devices. AWS recommends passkeys and FIDO-based security keys, which are small devices you plug into the computer, because they resist phishing, although authenticator apps with TOTP codes, which change every few seconds, and hardware tokens also work. For example, if someone sends you a fake AWS page, a passkey doesn't work on that page, while a code from an app is something you could type there by mistake.
cloud path tip: register two MFA devices. Each root user or IAM user can register up to eight, and with two you don't get locked out of the account if you lose your phone.
Accounts with the new experience
If you signed up with Google, GitHub, Apple, Amazon or email, your account, which AWS calls a project, has no root user. Its owner is your AWS Builder ID, which is your personal AWS profile, and that stays the same even if you later turn on the advanced features. You register MFA on your Builder ID, with a FIDO2 key, a passkey or a TOTP app, or on the Google, GitHub, Apple or Amazon account you signed in with.
IAM also works differently in that account, with these differences:
- IAM users and roles, which you can create only for programmatic access (CLI, SDK) and not for the console.
- IAM groups and console passwords, which can't be created because an AWS policy prevents it.
- The people on your team, whom you invite by email from AWS Settings and who sign in as project administrators.
- S3 bucket policies or SQS queue policies that deny access to everyone, which the project owner deletes from IAM, under "Root access management", because there is no root user to do it.
These differences matter when you practice in your own account. The exam questions, on the other hand, are about the full account, with a root user, groups and users with console access. For example, if you can't find the button to create a group in your practice account, that is because of the new experience, and on the exam groups do exist.
On the exam
Questions on this topic describe a need and ask you to choose the identity or the task that meets it. For example, if the question says a program on a server needs permissions for a while, the answer is a role, because it gives temporary credentials. These words in the question point to the answer:
| Words in the question |
Answer |
| Complete access, credentials the account was created with |
Root user |
| Closing the account, changing the root user's email, restoring the administrator's permissions |
Root user tasks |
| Assigning the same permissions to several users |
IAM group |
| Temporary credentials, an application on EC2 needs access to S3 |
IAM role |
| The first thing to do when opening an account |
Protect the root user with MFA and create an administrator user |