Last updated: 2019-12-14 11:39:54


1. API Description

API domain name:

This API (ListAttachedUserPolicies) queries the list of policies associated with a sub-account.

Default API request rate limit: 20 requests/sec.

2. Input Parameters

The following parameters are required for requesting this API, including action-specific parameters and common parameters. For more information about common parameters for all requests, see Common Request Parameters.

Parameter name Required Type Description
Action Yes String Common parameter; the name of this API: ListAttachedUserPolicies
Version Yes String Common parameter; the version of this API: 2019-01-16
Region No String Common parameter; optional for this API.
TargetUin Yes Integer Sub-account uin
Page No Integer Page number starting from 1; 1 by default
Rp No Integer Number of entries per page; 20 by default

3. Output Parameters

Parameter name Type Description
TotalNum Integer Total number of policies
List Array of AttachPolicyInfo Policy list
RequestId String The ID of the request. Each request returns a unique ID. The RequestId is required to troubleshoot issues.

4. Sample

Sample 1. Querying the List of Policies Associated with a Sub-account

Query the list of policies associated with sub-account 3449203261

Input Sample Code
&<Common request parameter>

Output Sample Code

  "Response": {
    "List": [
        "PolicyId": 1,
        "PolicyName": "AdministratorAccess",
        "AddTime": "2018-04-09 16:31:19",
        "CreateMode": 2
    "TotalNum": 10,
    "RequestId": "836d7034-9854-44f0-9d4a-ee57842f8644"

5. Developer Resources

API Explorer

This tool provides various capabilities such as online call, signature verification, SDK code generation, and quick API retrieval that significantly reduce the difficulty of using TencentCloud API.

6. Error Codes

The following error codes are API business logic-related. For other error codes, see Common Error Codes.

Error Code Description
InternalError.SystemError Internal error.
InvalidParameter.ParamError Invalid input parameter.