Skip to content
Learn Netverks

Lesson

Step 7/36 19% through track

users-groups-roles

Users, groups, and roles

Last reviewed Jun 1, 2026 Content v20260601
Track mode
none
Means
Read / quiz
Reading
~2 min
Level
beginner

This lesson

This lesson teaches Users, groups, and roles: AWS concepts, console/CLI practice patterns, and how the service fits in a typical cloud architecture.

Teams apply Users, groups, and roles in every serious AWS rollout—skipping it leaves blind spots in reviews and incidents.

You will apply Users, groups, and roles in contexts like: Production hosting, data pipelines, and corporate cloud landing zones.

Read the lesson, reproduce steps in your AWS Free Tier or sandbox (console and optional AWS CLI), diagram the architecture in notes, and complete MCQs—no in-browser cloud lab.

When you can explain the previous lesson's ideas in your own words.

Assign permissions to groups instead of duplicating policies on every user. Use roles when AWS services or external identities need temporary credentials—not long-lived user keys.

When to use each

IdentityUse when
UserHuman with long-lived Console/CLI access (small teams)
GroupApply same policy set to Developers, Billing, Admins
RoleEC2 instance, Lambda, CI runner, or cross-account access

Create a sandbox developer group (concept)

# Console workflow (preferred for learners):
# IAM → User groups → Create group → attach ReadOnlyAccess or custom policy
# IAM → Users → Add user to group

# CLI example (sandbox only):
aws iam create-group --group-name DevelopersSandbox
aws iam attach-group-policy \
  --group-name DevelopersSandbox \
  --policy-arn arn:aws:iam::aws:policy/ReadOnlyAccess

Practice: Perform IAM steps in the IAM Console or with the AWS CLI in a sandbox account only.

Roles for EC2 (preview)

An EC2 instance profile lets the app call S3 without static keys on disk—covered again in compute and integration lessons.

Important interview questions and answers

  1. Q: Why groups?
    A: Single place to update permissions for many users; avoids policy drift per user.
  2. Q: Role vs user credentials?
    A: Role credentials are temporary and auto-rotated; users can have persistent access keys.

Self-check

  1. When should you use a role instead of an IAM user?
  2. Why attach policies to groups rather than individual users?

Tip: Attach policies to groups named Developers, Billing, Admins—not duplicated on each user.

Interview prep

Groups benefit?

Centralize permissions—update one group instead of every user.

Role vs user?

Roles provide temporary credentials for services and federation; users are persistent identities.

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • Group policies why?
  • Instance profile?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump