How to remove an IAM user from a group

To remove an IAM user from an IAM group, use the below command where username is the name of the user and TeamA is the name of the group.

aws iam remove-user-from-group --user-name username --group-name TeamA
See also  How to get Date from Timestamp in Redshift Database