The following code examples show how to use RemoveUserFromGroup
.
- AWS CLI
-
To remove a user from an IAM group
The following
remove-user-from-group
command removes the user namedBob
from the IAM group namedAdmins
.aws iam remove-user-from-group \ --user-name
Bob
\ --group-nameAdmins
This command produces no output.
For more information, see Adding and removing users in an IAM user group in the AWS IAM User Guide.
-
For API details, see RemoveUserFromGroup
in AWS CLI Command Reference.
-
For a complete list of AWS SDK developer guides and code examples, see Using this service with an AWS SDK. This topic also includes information about getting started and details about previous SDK versions.