Back to aws
aws#aws#iam#security

Understanding IAM Roles vs Users vs Groups

A crisp mental model for AWS identity primitives — with common pitfalls.

Jane Contributor August 2, 2026 4 views

IAM Roles vs Users vs Groups

Users are long-lived identities with credentials. Groups attach policies to sets of users. Roles are short-lived, assumable identities — the right primitive for services, EC2, Lambda, cross-account access.

Rule of thumb

If a human logs in occasionally — User in a Group. If a machine or service needs credentials — Role.

Assume-role trust example

{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Principal": {"Service": "lambda.amazonaws.com"},
    "Action": "sts:AssumeRole"
  }]
}

Keep reading

You may also like

Discussion (0)

No comments yet. Be the first to weigh in.

Leave a comment

Comments are reviewed before appearing.