AWS IAM Explained: Users, Groups, Roles, Policies & Root User Best Practices
AWS access management is the set of AWS Identity and Access Management (IAM) capabilities that decide who can sign in to your AWS accounts, what each identity is allowed to do, and how its credentials are protected — the part of AWS security you control completely. CLF-C02 Task 2.3 tests whether you can identify the building blocks of IAM — users, groups, roles, and policies — and match each to the situation it was designed for. It also expects you to know why the root user is dangerous, which tasks only the root user can perform, and how least privilege shapes every permission decision. Beyond core IAM, the exam probes authentication methods (MFA, access keys, password policies), credential storage services like AWS Secrets Manager and AWS Systems Manager Parameter Store, and identity at scale: cross-account roles, federated identity, and AWS IAM Identity Center. This lesson covers the full official scope, with the comparisons that separate each capability from its look-alike neighbours.
What you’ll learn
- Explain what AWS IAM does, distinguish authentication from authorization, and apply explicit deny > allow > implicit deny
- Distinguish IAM users, groups, roles, and policies (including trust vs permissions policies) and pick the right one for a scenario
- List the tasks that require root user credentials, the methods that protect the root user, and how AWS Organizations centralizes root access
- Apply least privilege to custom and managed policies, and tell it apart from separation of duties and RBAC
- Identify AWS authentication methods — MFA types, access keys, password policies, cross-account roles, and federation
- Compare IAM Identity Center with IAM, Amazon Cognito, and AWS Organizations, and Secrets Manager with Systems Manager Parameter Store
The 9 parts · about 17 min of reading
- What IAM isStart hereIAM is a free global service that authenticates every request and authorizes it by policy: explicit deny, then allow, else deny.2 min
- The four IAM building blocksUsers hold long-term credentials, groups share policies among users, roles hand out temporary credentials and policies define access.2 min
- Policies: AWS managed, customer managed, and inlineAWS managed policies are broad and uneditable, customer managed ones can be scoped tightly, and boundaries and SCPs only cap access.2 min
- The root userThe root user has unrestricted access that IAM cannot limit, so lock it down with MFA, no access keys and use it only for root tasks.2 min
- The principle of least privilegeGrant each identity only the permissions its task needs to limit the blast radius, unlike separation of duties or RBAC.2 min
- Authentication methodsMFA strengthens sign-in, access keys sign CLI and SDK calls and need rotation, and the password policy covers IAM console passwords.2 min
- Roles in actionEC2 and Lambda get permissions through roles, cross-account access uses a role in the resource account, and federation avoids IAM users.2 min
- IAM Identity CenterIAM Identity Center gives employees one sign-in to many accounts and apps, using permission sets provisioned as roles in each account.2 min
- Credential storageSecrets Manager stores secrets with automatic rotation; Parameter Store keeps configuration and SecureString values without rotation.1 min
Mind map
How the exam tests this
CLF-C02 tests this task with identification and best-practice questions. Expect to pick which tasks require the root user (and which, like changing the Support plan, no longer do), and which methods protect it (MFA, no access keys, an administrative user for daily work). Scenario questions make you choose among user, group, role, and policy — especially "an application on EC2 or Lambda needs S3 access" (a role, never stored access keys or a group) and "same permissions for many people" (a group). You will also match services and settings to needs: MFA types, the password policy and what it does not cover, the credential report for unused keys, narrow custom policies for least privilege, cross-account roles (trust direction) or federation for external access, IAM Identity Center versus Cognito and Organizations, and Secrets Manager versus Parameter Store.
Key takeaways
- IAM is a free, global service: authentication proves who you are; policies authorize what you can do — explicit deny beats allow, and anything not allowed is implicitly denied.
- Users hold long-term credentials, groups organize IAM users (never instances or other accounts' users), roles are assumed temporarily, policies are JSON permission documents.
- Protect the root user: MFA, strong password, no access keys, an administrative user (AWS recommends IAM Identity Center) for daily work. IAM policies cannot restrict root.
- Root-only tasks include changing the root email/password, closing or reopening a standalone account, restoring a locked-out admin, enabling S3 MFA delete, and unlocking a deny-all bucket or queue policy. Changing the Support plan or account name is not root-only.
- Least privilege narrows both actions and resources; a custom policy is only least privilege if it is narrow. Permissions boundaries and SCPs cap permissions but grant nothing.
- Workloads use roles: an EC2 instance role or Lambda execution role, never stored access keys. Cross-account roles live in the resource-owning account and trust the requesting account.
- Access keys never expire on their own and ignore the password policy; find unused ones with the IAM credential report and deactivate leaked ones immediately.
- IAM Identity Center = workforce single sign-on across many accounts (permission sets become roles); Cognito = customer sign-in for your apps; Secrets Manager rotates secrets, Parameter Store stores config and SecureString values.
Part 1: What IAM is
IAM is a free global service that authenticates every request and authorizes it by policy: explicit deny, then allow, else deny.
Frequently asked questions
What is the difference between an IAM user and an IAM role?
An IAM user is a permanent identity with long-term credentials — a console password and/or access keys — representing one person or application. An IAM role has no long-term credentials at all: it is assumed temporarily by a user, an AWS service like EC2 or Lambda, or an external federated identity, which then receives short-lived, automatically rotated credentials. Use a user when a specific person needs ongoing sign-in; use a role for applications, cross-account access, federation, or any temporary need. AWS best practice favors roles because temporary credentials cannot leak and live for months the way access keys can.
What tasks can only the AWS root user perform?
Tasks that require root user credentials include changing the root email address, root password, or root access keys of a standalone account; closing a standalone account and reopening it during the post-closure period; restoring permissions when the only IAM administrator has locked themselves out; activating IAM access to the Billing and Cost Management console; enabling MFA delete on an S3 bucket; editing or deleting an S3 bucket policy or SQS queue policy that denies all principals; and registering as a Reserved Instance Marketplace seller. Changing the account name or the AWS Support plan only needs IAM permissions. In AWS Organizations, the management account can close member accounts, change their root email addresses, and, with centralized root access, remove member root credentials and perform those privileged tasks centrally.
How do I protect the AWS root user account?
Enable multi-factor authentication (MFA) on the root user, preferably a phishing-resistant passkey or security key. Use a long, strong, unique password stored securely. Delete any root user access keys and never create new ones, since root should never be used programmatically. Do daily work with an administrative user — AWS recommends one in IAM Identity Center — so the root user is used only for the few tasks that require it. Keep the root email address and recovery phone number secure and current, and monitor for unexpected root activity. IAM policies cannot restrict the root user, which is why these controls matter.
Sign up free to mark lessons complete, bookmark topics and track your exam readiness.