All Products
Search
Document Center

AnalyticDB:DescribeAccountAllPrivileges

Last Updated:Nov 10, 2025

Queries the permissions of a database account on all permission levels.

Operation description

For information about the endpoints of AnalyticDB for MySQL, see Endpoints .

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
adb:DescribeAccountAllPrivilegeslist
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID of the cluster.

cn-hangzhou
DBClusterIdstringYes

The ID of the AnalyticDB for MySQL Data Lakehouse Edition (V3.0) cluster.

amv-bp14t95lun0w****
AccountNamestringYes

The name of the database account.

account1
MarkerstringNo

Specifies the start position marker from which to return results. If you receive a response indicating that the results are truncated, set this parameter to the value of the Marker parameter in the response that you received.

EXAMPLE

Response parameters

ParameterTypeDescriptionExample
object

BaseResponse

RequestIdstring

The ID of the request.

3BB185E9-BB54-1727-B876-13243E4C0EB5
Dataobject

Details of the permissions.

Resultarray<object>

The permissions.

resultobject
PrivilegeTypestring

The permission level of the database account. You can call the DescribeEnabledPrivileges operation to query the permission level of the database account.

Global
PrivilegeObjectobject

The objects on which the permission takes effect, including databases, tables, and columns. If Global is returned for the PrivilegeType parameter, an empty string is returned for this parameter.

Databasestring

The name of the database.

tdb1
Tablestring

The name of the table.

table1
Columnstring

The name of the column.

id
Descriptionstring

The description of the permission object.

id of table
Privilegesarray

The name of the permission, which is the same as the permission name returned by the DescribeEnabledPrivileges operation.

privilegestring
select
Markerstring

Indicates the position where the results are truncated. When a value of true is returned for the Truncated parameter, this parameter is present and contains the value to use for the Marker parameter in a subsequent call.

0573e74fd1ccb01739993a691e876074db6e1b6ad79f54115f0e98528432ba6a523cfec5780ade5189299cc3396f6ff7
Truncatedboolean

Indicates whether the results are truncated. If the results are truncated, a value of true is returned. In this case, you must call this operation again to obtain all the results until a value of false is returned for this parameter.

true

Examples

Sample success responses

JSONformat

{
  "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 codeError codeError messageDescription
400ACS.Account.NotExistThe account is not found.The specified RAM user does not exist.
400ACS.InvalidParameter.%sParameter %s is invalid.The specified parameter is invalid.
400InvalidDBCluster.NotFoundThe DBClusterId provided does not exist in our records.The specified DBClusterId parameter does not exist. Make sure that the DBClusterId value is valid.
400ACS.User.NotBindDatabaseAccountThe user has not been associated with a database account.The user is not associated with the database account.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-04-09The Error code has changedView Change Details
2023-12-06The Error code has changedView Change Details
2023-04-20The Error code has changedView Change Details
2023-03-24The internal configuration of the API is changed, but the call is not affectedView Change Details