All Products
Search
Document Center

AnalyticDB:DescribeAccountAllPrivileges

Last Updated:Jan 14, 2026

Retrieves all permissions granted to a specified account, including permissions at the global, database, table, and column levels.

Operation description

For the endpoint of this service, see Endpoints.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

adb:DescribeAccountAllPrivileges

list

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

The region ID.

cn-hangzhou

DBClusterId

string

Yes

The cluster ID for the Data Lakehouse Edition.

amv-bp14t95lun0w****

AccountName

string

Yes

The database account name for the cluster.

account1

Marker

string

No

If the response is truncated, use the Marker value from the response in this field to retrieve the next set of results.

EXAMPLE

Response elements

Element

Type

Description

Example

object

BaseResponse

RequestId

string

The request ID.

3BB185E9-BB54-1727-B876-13243E4C0EB5

Data

object

Permission details.

Result

array<object>

List of permissions.

array<object>

Permission details.

PrivilegeType

string

The permission level, returned by the DescribeEnabledPrivileges operation.

Global

PrivilegeObject

object

The permission object, represented as a trituple of database, table, and column. All fields are empty for Global-level permissions.

Database

string

The database name.

tdb1

Table

string

The table name.

table1

Column

string

The column name.

id

Description

string

Description of the permission object.

id of table

Privileges

array

List of permissions.

string

The permission name, consistent with the names returned by the DescribeEnabledPrivileges operation.

select

Marker

string

If the Truncated field in the response is true, pass this value in subsequent calls to retrieve the next set of results.

0573e74fd1ccb01739993a691e876074db6e1b6ad79f54115f0e98528432ba6a523cfec5780ade5189299cc3396f6ff7

Truncated

boolean

If the response is truncated, this field is true. Continue calling this operation until this field becomes false.

true

Examples

Success response

JSON format

{
  "RequestId": "3BB185E9-BB54-1727-B876-13243E4C0EB5",
  "Data": {
    "Result": [
      {
        "PrivilegeType": "Global",
        "PrivilegeObject": {
          "Database": "tdb1",
          "Table": "table1",
          "Column": "id",
          "Description": "id of table"
        },
        "Privileges": [
          "select"
        ]
      }
    ],
    "Marker": "0573e74fd1ccb01739993a691e876074db6e1b6ad79f54115f0e98528432ba6a523cfec5780ade5189299cc3396f6ff7",
    "Truncated": true
  }
}

Error codes

HTTP status code

Error code

Error message

Description

400 ACS.Account.NotExist The account is not found. The specified RAM user does not exist.
400 ACS.InvalidParameter.%s Parameter %s is invalid. The specified parameter is invalid.
400 InvalidDBCluster.NotFound The DBClusterId provided does not exist in our records.
400 ACS.User.NotBindDatabaseAccount The user has not been associated with a database account. The user is not associated with the database account.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.