AWS CLI IAM and STS Cheat Sheet/Remove user from group

Detach a user from a group.

Section: IAM Users and Groups

Remove user from group

bash
bash
aws iam remove-user-from-group --user-name deploy-bot --group-name Developers
Explanation

Useful during access cleanup.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing IAM Users and Groups
List IAM groups
Show IAM groups in the account.
OpenIn sheetbashsame section
Add user to group
Attach an IAM user to a group.
OpenIn sheetbashsame section
List IAM users
Show IAM users in the account.
OpenIn sheetbashsame section
Get current IAM user or a named user
Read user details.
OpenIn sheetbashsame section
Create an IAM user
Create a new user principal.
OpenIn sheetbashsame section
Delete an IAM user
Remove a user principal.
OpenIn sheetbashsame section