tencent cloud



最后更新时间:2023-03-15 10:25:07

1. API Description

Domain name for API request: cam.tencentcloudapi.com.

This API is used to list policies associated with the user (including those inherited from the user group).

A maximum of 5 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: ListAttachedUserAllPolicies.
Version Yes String Common Params. The value used for this API: 2019-01-16.
Region No String Common Params. This parameter is not required for this API.
TargetUin Yes Integer Target user ID.
Rp Yes Integer The number of policies displayed on each page. Value range: 1-200.
Page Yes Integer Page number. Value range: 1-200.
AttachType Yes Integer 0: return policies that are directly associated and inherited from the user group; 1: return policies that are directly associated; 2: return policies inherited from the user group.
StrategyType No Integer Policy type.
Keyword No String Keyword for searching.

3. Output Parameters

Parameter Name Type Description
PolicyList Array of AttachedUserPolicy Policy list.
TotalNum Integer Total number of policies.
RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Example

Example1 Listing policies associated with the user (including those inherited from the user group)

Input Example

&<Common request parameters>

Output Example

    "Response": {
        "TotalNum": 11,
        "PolicyList": [
                "PolicyId": "522474",
                "PolicyName": "policygen-20191204195412",
                "Description": "",
                "AddTime": "2019-12-04 19:56:35",
                "StrategyType": "1",
                "CreateMode": "3",
                "Deactived": 1,
                "Groups": [],
                "DeactivedDetail": [
        "RequestId": "d369dabb-ebc9-4598-baae-e1177e9e3868"

5. Developer Resources


TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
InvalidParameter.ParamError Invalid input parameter.
ResourceNotFound.UserNotExist User does not exist.
UnauthorizedOperation Unauthorized operation.




7x24 电话支持