Attaches the specified managed policy to the specified user.
PolicyArn | Arn of the policy to attach. |
UserName | Username of the user to attach the policy. |
This call has no restrictions.
No Request Payload
Field | Description | Type | Notes |
AttachUserPolicyResponse | |||
ResponseMetadata | |||
RequestId | String |
POST https://192.168.0.0:4443/iam?UserName=tt1&PolicyArn=urn:ecs:iam:::policy/ECSS3FullAccess&Action=AttachUserPolicy Accept: application/xml X-SDS-AUTH-TOKEN: <AUTH_TOKEN> x-emc-namespace: <namespace>
HTTP/1.1 200 OK <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ns2:AttachUserPolicyResponse xmlns:ns2="none"> <ResponseMetadata> <RequestId>0af9f5b8:17178fe9282:96aa:bc</RequestId> </ResponseMetadata> </ns2:AttachUserPolicyResponse>