Script to get the list of aws groups associated with IAM users.
It is a linux shell script and you need to install & configure aws-cli (please refer aws-cli doc to configure aws-cli)
chmod +x aws_userlist_group.shlogin to your aws account using aws-cli
./aws_userlist_group.sh
You get the output in a file list_user_groups.txt