Grants permissions to a role.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

Request syntax

POST /pop/v5/account/authorize_role HTTPS|HTTP

Request parameters

Parameter Type Required Example Description
TargetUserId String Yes test@133******

The ID of the RAM user that you want to authorize.

RoleIds String No 1;2

The ID of the role. Separate multiple IDs with semicolons (;). If this parameter is set to null, the role authorization is canceled.

Response parameters

Parameter Type Example Description
Code Integer 200

The returned code.

Message String success

The returned message.

RequestId String 57609587-DFA2-*******


Sample requests

POST /pop/v5/account/authorize_role HTTP/1.1
Common request parameters
  "TargetUserId": ""

Sample success responses

XML format


JSON format

    "RequestId": "57609587-DFA2-41EC-****-*********",
    "Code": "200",
    "Message": "sucess"

Error codes.

For a list of error codes, visit the API Error Center.