Amazon IAM (Identity and Access Management) is a secure AWS service that enables you to manage access to AWS resources. It allows you to create users, groups, roles, and policies to define permissions. IAM helps enforce the principle of least privilege by giving the right access to the right people or systems. The AWSIAMHandler provides asynchronous helper methods to list and audit IAM entities, including users, groups, roles, managed policies, MFA devices, and account-level security configurations.Documentation Index
Fetch the complete documentation index at: https://docs.superagentx.ai/llms.txt
Use this file to discover all available pages before exploring further.
Example
To create the AWSIAMHandler object, initialize it with AWS credentials and a region:Fetches all IAM users with attached/inline policies, MFA, login profiles, access keys, and groups.
Fetches IAM roles with trust policies, attached policies, inline policies, and instance profiles.
Lists IAM groups with members, attached managed policies, and inline policies.
Retrieves all IAM managed policies (AWS & customer-managed) along with their documents.
Returns IAM users with MFA devices enabled.
Fetches IAM resource usage and quota (roles, groups, users, etc.).
Retrieves IAM account credential report (CSV format) for auditing password age, MFA, and access key rotation.
Lists assigned and unassigned virtual MFA devices.
Retrieves password policy (complexity, expiry, rotation, etc.).
Lists aliases for the AWS account.
Lists all accounts under AWS Organizations (if enabled).
Fetches everything (users, groups, roles, policies, MFA, org accounts, etc.) in a single structured call.

