Call RevokeUserPermission to revoke user permissions

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes RevokeUserPermission

The operation that you want to perform. Valid values: RevokeUserPermission

DbId String Yes 14****

The ID of the database.

DsType String Yes DATABASE

The resource type. For more information about valid values and descriptions, see GrantUserPermission API.

PermTypes String Yes QUERY

The type of the permission. For more information about valid values and descriptions, see GrantUserPermission API.

Tid Long Yes -1

The ID of the tenant.

UserAccessId String Yes 123

User permission information ID

UserId String Yes 1234

The user ID, which corresponds to the user ID in the GetUser API. Note that this is not the Uid of a user.

Logic Boolean No false

Indicates whether the database was a logical database.

TableId String No 134****

The ID of the table to be created. This parameter is required when you authorize the permissions on the table.

TableName String No table_name

Table name. This parameter is required when you authorize the permissions of a table.

Response parameters

Prameter Type Sample response Description
RequestId String A99CD576-1E18-4E86-931E-C3CCE5****** The ID of the request
Success Boolean True Indicates whether the request was successful.
ErrorMessage String UnknownError The error message.
ErrorCode String UnknownError Error code.

Examples

Sample request

http(s)://[Endpoint]/? Action=RevokeUserPermission
&<Common request parameters>

Sample success responses

JSON format

{
  "RequestId": "A99CD576-1E18-4E86-931E-C3CCE5******",
  "Success": true
}

XML format

<RequestId>A99CD576-1E18-4E86-931E-C3CCE5******</RequestId>
<Success>true</Success>

Error codes.

For a list of error codes, visit the API Error Center.