AttachGroupPolicy#

Description#

Attaches a policy to an IAM group.

Request Parameters#

  • GroupName — The name of the group.

    • Type: String

    • Required: Yes

  • PolicyArn — Amazon Resource Name (ARN) of the attached policy.

    • Type: String

    • Required: Yes

Examples#

Request

https://iam.k2.cloud/?Action=AttachGroupPolicy
&GroupName=group-1
&PolicyArn=arn:c2:iam:::policy/IAMFullAccess

Response

<AttachGroupPolicyResponse>
    <requestId>fa7f64c8-5c45-4469-b004-3779fd8cb196</requestId>
    <ResponseMetadata>
        <RequestId>fa7f64c8-5c45-4469-b004-3779fd8cb196</RequestId>
    </ResponseMetadata>
</AttachGroupPolicyResponse>
c2-iam AttachGroupPolicy GroupName group-1 PolicyArn arn:c2:iam:::policy/IAMFullAccess