AWS Identity and Access Management (IAM) is the AWS service that controls who can access AWS resources and what actions they can perform. It answers two questions for every request: who are you, and are you allowed to do this? IAM uses users, groups, roles and JSON policies to grant only the minimum permissions each person or application needs.
Key takeaways
- IAM answers two questions for every AWS request: who are you, and are you allowed to do this?
- Users have long-term credentials, roles give temporary access, and policies define exactly what is allowed.
- Least privilege, MFA on the root user, and no shared credentials are the foundations of a secure AWS account.
Every click in the AWS console, every API call and every service-to-service request passes through the same checkpoint. AWS Identity and Access Management, known as IAM, decides who that requester is and whether they are allowed to do what they asked for.
What is AWS Identity and Access Management?
AWS Identity and Access Management (IAM) is a service that securely controls who can access AWS resources and what actions they are allowed to perform. It verifies identities and checks permissions before allowing access to any AWS service or resource.
Think of AWS as a large office building with thousands of rooms. Each room is a service: storage, computing, databases. IAM is the security desk at the entrance. Nobody gets into a room without a badge, and the badge only opens the rooms that person is meant to enter.
IAM is free to use, and unlike most AWS services it is global rather than tied to one region. A user you create exists everywhere in your account. That makes it the first service most teams should learn, because a mistake here affects everything else. The AWS Builder Center guide to IAM makes the same point: IAM is the foundation of a secure AWS environment.
How does AWS IAM work?
When someone or something requests access, AWS checks the identity, evaluates the applicable policies, and then allows or denies the action. The request is authenticated first, then authorized against the permissions attached to that identity.
The basic flow has four steps. A user or application requests access to a resource. AWS checks the identity and its credentials. IAM evaluates the policies attached to that identity. AWS then allows or denies the requested action based on that evaluation.
By default, IAM denies everything. Access only exists when a policy explicitly allows it, and an explicit deny always overrides an allow. That deny-by-default design is why IAM is so effective when it is configured carefully.
What are the core components of IAM?
The core components are IAM users, groups, roles and policies. Users and roles are identities, groups organize users, and policies define what each identity is allowed to do.
IAM users
An IAM user represents a person or an application that needs long-term access to an AWS account. Each user has its own credentials, such as a console password or access keys, and its own permissions.
Give every person their own user. Shared logins make it impossible to know who did what, and they make revoking access painful when someone leaves. If you need a strong password for a console user, generate one with our free password generator.
IAM groups
An IAM group is a collection of IAM users. Instead of assigning the same permissions to every developer one by one, you attach policies to the group and everyone in it inherits them.
Groups keep administration simple. When a developer joins the team, add them to the Developers group. When they leave, remove them. Their permissions change with the group, so nothing is left behind by accident.
IAM roles
An IAM role provides temporary security credentials to a trusted user, application or AWS service. Nobody owns a role permanently; it is assumed when needed and the credentials expire.
Roles are the right choice for applications. For example, an EC2 instance can assume a role to read objects from an S3 bucket, without storing long-lived access keys in the application code. That removes a whole class of leaked-credential risk.
IAM policies
An IAM policy is a JSON document that defines permissions. It specifies the effect (allow or deny), the actions, the resources, and any conditions that must be met, such as the time of day or the source IP address.
Policies come in two broad kinds. Identity-based policies attach to users, groups or roles. Resource-based policies attach to a resource, such as an S3 bucket, and say who may access that resource. Both are evaluated together.
IAM users vs roles vs groups: what is the difference?
Users are long-term identities, roles are temporary identities, and groups are a way to manage users together. Policies are the rules; the other three are the things policies attach to.
| Component | What it is | Credentials | Best for |
|---|---|---|---|
| IAM user | A person or application identity | Long-term password or access keys | People who sign in regularly |
| IAM group | A collection of users | None of its own | Assigning the same permissions to a team |
| IAM role | A temporary identity assumed when needed | Short-lived, expiring credentials | Applications, services and cross-account access |
| IAM policy | A JSON permissions document | None | Defining exactly what is allowed or denied |
| Root user | The account owner identity | Full, unrestricted access | Account setup only, protected by MFA |
A common beginner mistake is giving everyone the built-in AdministratorAccess policy because it is easy. That is the opposite of least privilege. Start with the smallest policy that lets the person do their job, and widen it only when a real task is blocked.
What is the principle of least privilege?
Least privilege means granting only the minimum permissions required to complete a task. A developer who only needs to read objects from one S3 bucket should not be able to delete buckets, create users or change billing.
The reason is blast radius. If credentials are stolen, phished or accidentally leaked, the attacker can only do what those credentials allowed. Narrow permissions turn a full account takeover into a minor incident.
In practice, least privilege is a habit, not a one-time setting. Review permissions regularly, remove access people no longer need, and use AWS tools such as IAM Access Analyzer to find unused permissions. The small business cybersecurity checklist covers access reviews alongside backups and updates.
What is the AWS root user and how do you secure it?
The root user is the identity created when you open an AWS account, and it has unrestricted access to everything in the account. It should be used only for tasks that only the root user can do, such as changing the account email or closing the account.
Secure it on day one. Enable MFA on the root user, use a long unique password stored in a password manager, and never create access keys for it. Our guide to what a password manager is and how it works explains how to store that password safely.
Also set up an administrative IAM user or role for daily work, and alerting for any root sign-in. If the root user ever signs in unexpectedly, treat it as an incident and investigate immediately.
How does MFA work with IAM?
Multi-factor authentication adds a second check at sign-in, such as a code from an authenticator app or a tap on a security key. Even if a password is stolen, the attacker still cannot sign in without that second factor.
AWS supports virtual MFA devices, hardware MFA devices and passkeys. Passkeys and hardware security keys are the strongest option because they resist phishing: they only work on the real AWS sign-in page.
Require MFA for console access, especially for administrators and the root user. You can enforce it with a policy that denies access unless MFA was used, so a forgotten setting does not leave a gap. The AWS IAM explainer lists MFA as one of the most important IAM security features.
What is IAM Identity Center?
IAM Identity Center manages workforce access across multiple AWS accounts from one place. People sign in once with their company identity and get access to the accounts and applications assigned to them.
It is the better choice once you have more than one AWS account, or a team that also uses other company applications. It replaces the pattern of creating separate IAM users in every account, which quickly becomes hard to audit.
For a single small account, plain IAM users and groups are enough. As you grow, move to Identity Center before the sprawl of users and keys becomes a security review problem.
What are the most common IAM mistakes?
The most common mistakes are using the root user daily, sharing credentials, granting administrator access to everyone, and leaving unused access keys active. Each one is easy to fix, and each one is a frequent cause of real breaches.
- Shared credentials. One login for a whole team means nobody is accountable and revoking access breaks everyone.
- Over-broad policies. AdministratorAccess for all users, or
s3:*on all buckets, gives attackers far more than they need. - Unused access keys. Old keys from former staff or finished projects should be deleted, not left active.
- No MFA. A password alone is one stolen credential away from a breach.
- No access reviews. Permissions granted for a project in 2024 may still be active long after the project ended.
How do you set up IAM securely?
Start with the root user locked down, create one administrative user for yourself, then build groups and roles for everyone else. Add MFA before you create anything else that matters.
- Lock the root user. Enable MFA, store a long unique password in a password manager, and do not create root access keys.
- Create an admin IAM user or role for your own daily work, with MFA required.
- Create groups for each team, such as Developers and Billing, and attach the smallest policies they need.
- Use roles for applications instead of embedding access keys in code or configuration files.
- Turn on CloudTrail so every API call is logged, and review the logs when something looks wrong.
- Review access quarterly. Remove users who left, delete unused keys, and tighten policies that are wider than needed.
Check any password you plan to reuse with our pwned password checker before you rely on it. A password that already appears in a known breach should never guard an AWS account.
The bottom line
IAM is not an optional extra in AWS. It is the control that decides what every person, application and service can do, and a small mistake there can expose everything else you build.
Lock the root user, give each person their own identity, use roles for applications, and keep permissions as narrow as the job allows. You can start by creating a strong, unique password for your admin user with the free password generator.
Frequently asked questions
What is AWS Identity and Access Management in simple terms?
AWS IAM is the security desk for your AWS account. It checks the identity of every person, application or AWS service that asks to do something, then checks whether that identity has permission. If either check fails, AWS denies the request.
Is AWS IAM free?
Yes. IAM itself is free to use. You do not pay for users, groups, roles or policies. You pay only for the AWS services those identities use, such as EC2 or S3, and for optional add-ons such as IAM Identity Center features in some configurations.
What is the difference between an IAM user and an IAM role?
An IAM user is a long-term identity for a person or application, with its own credentials. A role is an identity nobody owns permanently: a trusted user, application or AWS service assumes it temporarily and gets short-lived credentials for a specific job.
What is an IAM policy?
An IAM policy is a JSON document that lists which actions are allowed or denied on which resources, and under what conditions. Policies attach to users, groups or roles. An explicit deny in any applicable policy always wins over an allow.
What is the AWS root user and why should I not use it daily?
The root user is created when you open an AWS account and has unrestricted access to everything in it. Using it daily is risky because its credentials, if stolen, give an attacker full control. Lock it with MFA, store its credentials safely, and use IAM users or roles for everyday work.
What is the principle of least privilege in AWS IAM?
Least privilege means granting only the minimum permissions needed to complete a task, and nothing more. It limits the damage if credentials are stolen or misused. Start narrow, add permissions as needed, and review access regularly.
Do I need MFA for AWS IAM?
Yes, especially for the root user and for any user with administrative access. MFA requires a second factor, such as a code from an authenticator app or a security key, in addition to a password. AWS supports virtual MFA devices, hardware keys and passkeys for stronger sign-in.
What is IAM Identity Center?
IAM Identity Center is the AWS service for managing workforce access across multiple AWS accounts. It lets people sign in once with their company identity and get access to the accounts and applications they need, instead of managing separate IAM users in every account.
Sources
- AWS Builder Center — IAM in AWS: Why Identity and Access Management Matters
- AWS Builder Center — Understanding IAM as a Beginner: Users, Roles, Policies, and Least Privilege
- AWS Builder Center — AWS IAM Explained: Understanding Identity and Access Management in AWS
- AWS Builder Center — Building a Secure Foundation for Cloud Access Control
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against AWS Builder Center IAM guides and AWS IAM documentation concepts for users, roles, policies and least privilege.
How we write and fact-check →