Course contentsShow
← Cloud and Infrastructure
Lesson 360 of 2,9897. Identity and Access ManagementFree lesson

Auditing Group and Role Membership

Understand how to review and audit which users belong to groups and which entities can assume roles.

Auditing Group and Role Membership

You'll learn how to review which users belong to which groups and which identities can assume specific roles.

Why Auditing Membership Matters

Think of groups and roles like membership cards for different clubs. Over time, people join, leave, or change responsibilities—but those "cards" don't always get revoked. Auditing membership means regularly checking who has access to what through their group memberships and role assignments.

Without periodic audits, you risk:

  • Privilege creep: Users accumulating permissions they no longer need
  • Orphaned access: Former employees still listed in groups
  • Compliance violations: Inability to prove who had access when

What You're Checking

When auditing, you review:

  1. Group membership: Which users are in each group? Do they still need that access?
  2. Role assumptions: Which identities (users, services, accounts) can assume each role? Are the trust policies still appropriate?
  3. Timestamp data: When was membership granted? Has it been there too long?

How to Approach an Audit

Imagine you have a "DevOps-Admin" group and an "EC2-Manager" role:

  • List all members of "DevOps-Admin"—are they all current DevOps staff?
  • Check which users or services can assume "EC2-Manager"—should that contractor still have this?
  • Cross-reference with HR records or project rosters
  • Document findings and remove unnecessary memberships

Most cloud providers offer IAM dashboards, CLI commands, or audit logs specifically for reviewing these relationships. Regular audits (monthly or quarterly) keep your access control tight and compliant.

Key Takeaway: Auditing group and role membership means periodically verifying who belongs to groups and who can assume roles, removing unnecessary access to maintain least privilege and security compliance.