Below is the command to view all the policies attached to an IAM group where TeamA is the name of the group.
aws iam list-attached-group-policies --group-name TeamA
Below is the command to view all the policies attached to an IAM group where TeamA is the name of the group.
aws iam list-attached-group-policies --group-name TeamA