AddUserToGroup#

Description#

Adds a user to an IAM group.

Request Parameters#

Required parameters#

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

    • 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 added to a project group.

    • Type: String

    • Required: No

Examples#

Request

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

Response

<AddUserToGroupResponse>
    <requestId>b1a6b219-da99-4d14-89a8-0d62cb2dc22c</requestId>
    <ResponseMetadata>
        <RequestId>b1a6b219-da99-4d14-89a8-0d62cb2dc22c</RequestId>
    </ResponseMetadata>
</AddUserToGroupResponse>
c2-iam AddUserToGroup UserName user-1 ProjectName project-1 GroupArn arn:c2:iam:::group/CloudAdministrators

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