Get all AWS IAM user information


Access rights is very critical for any project. You need to be certain who should have access to which resources and then manage that. You should regularly audit users and access rights they have.

In this article I tried to get all AWS IAM users, policies they have attached, is multi factor authentication enabled and groups they are member of. For code I have used python and boto3 to fetch data from AWS. I have used lambda function to execute this code.

Script will fetch the data and export it to file which is saved in S3 bucket.

You can find code here.

Happy Coding 🙂

Leave a Comment

Your email address will not be published. Required fields are marked *