RemoveUserFromGroup#

Description#

Removes a user from the IAM group.

Request Parameters#

Required parameters#

  • GroupArn — Amazon Resource Name (ARN) of the group from which the user is removed.

    • Type: String

    • Required: Yes

  • UserName — The name of the user.

    • Type: String

    • Required: Yes

Optional parameters#

  • ProjectName — The name of the project, which is specified when a user is removed from a project group.

    • Type: String

    • Required: No

Examples#

Request

https://iam.k2.cloud/?Action=RemoveUserFromGroup
&UserName=user-1
&ProjectName=project-1
&GroupArn=arn:c2:iam:::group/CloudAdministrators

Response

<RemoveUserFromGroupResponse>
    <requestId>6d4c50ea-a381-4353-92e1-f9d331680abc</requestId>
    <ResponseMetadata>
        <RequestId>6d4c50ea-a381-4353-92e1-f9d331680abc</RequestId>
    </ResponseMetadata>
</RemoveUserFromGroupResponse>
c2-iam RemoveUserFromGroup UserName user-1 ProjectName project-1 GroupArn arn:c2:iam:::group/CloudAdministrators

c2-iam RemoveUserFromGroup UserName user-1 GroupArn arn:c2:iam:::group/IAMAdministrators