Attaches a policy to a Resource Access Management (RAM) user.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| PolicyType | string | Yes | The type of the policy. Valid values: | Custom |
| PolicyName | string | Yes | The name of the policy. | OSS-Administrator |
| UserName | string | Yes | The name of the RAM user. | zhangq**** |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "697852FB-50D7-44D9-9774-530C31EAC572"
}Error codes
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|
No change history
