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
Test
RAM authorization
|
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 |
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 |
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 |
select |
|
| Marker |
string |
If the |
0573e74fd1ccb01739993a691e876074db6e1b6ad79f54115f0e98528432ba6a523cfec5780ade5189299cc3396f6ff7 |
| Truncated |
boolean |
If the response is truncated, this field is |
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.