All Products
Search
Document Center

DataWorks:RevokeColumnPermission

Last Updated:Oct 17, 2024

Revokes permissions on table fields from a user.

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

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
WorkspaceIdlongYes

The ID of the DataWorks workspace with which the MaxCompute project is associated. You can log on to the DataWorks console and go to the Workspace page to obtain the ID.

12345
MaxComputeProjectNamestringYes

The name of the MaxCompute project to which the fields belong. You can log on to the DataWorks console and go to the SettingCenter page to obtain the name of the MaxCompute project that you associate with the workspace.

aMaxcomputeProjectName
TableNamestringYes

The name of the MaxCompute table to which the fields belong. You can call the SearchMetaTables operation to query the name of the MaxCompute table.

aTableName
ColumnsstringYes

The fields for which you want to revoke permissions from a user. Separate multiple fields with commas (,). You can revoke the permissions on the fields only in MaxCompute tables.

id,name
RevokeUserNamestringNo

The Alibaba Cloud account from which you want to revoke permissions. Specify this parameter in the format that is the same as the format of the account used to access the MaxCompute project.

  • If the account is an Alibaba Cloud account, the value is in the ALIYUN$+Account name format.
  • If the account is a RAM user, the value is in the RAM$+Account name format.

You must specify either this parameter or the RevokeUserId parameter. If you specify both this parameter and the RevokeUserId parameter and the parameter values are different, the value of the RevokeUserId parameter prevails.

RAM$dataworks_3h1_1:stsramuser
RevokeUserIdstringNo

The ID of the Alibaba Cloud account of the user from which you want to revoke permissions. You can log on to the DataWorks console and go to the Security Settings page to obtain the ID. You must specify either this parameter or the RevokeUserName parameter. If you specify both this parameter and the RevokeUserName parameter and the parameter values are different, the value of this parameter prevails.

267842600408993176

Response parameters

ParameterTypeDescriptionExample
object
RevokeSuccessboolean

Indicates whether the permissions are revoked.

true
RequestIdstring

The request ID.

0bc1ec92159376****

Examples

Sample success responses

JSONformat

{
  "RevokeSuccess": true,
  "RequestId": "0bc1ec92159376****"
}

Error codes

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

Change history

Change timeSummary of changesOperation
No change history