Removes a user from a MaxCompute project if the user leaves the MaxCompute project team. After the user is removed, the user no longer has the permissions to access the resources of the project.
Limits
Before you remove a user who is assigned a role, you must revoke the role.
MaxCompute does not allow you to completely remove a user and the relevant authorization data. After a user is removed, the permissions that are granted to the user are retained. If the user is added to the project again, the historical access permissions of the user will be activated again.
You can execute the statements that are described in this topic on the following platforms:
Syntax
remove user <user_name>;
Parameters
user_name: required. The name of the Alibaba Cloud account or RAM user that you want to remove. The format of an Alibaba Cloud account is ALIYUN$****@aliyun.com;
. The format of a RAM user is RAM$****
.
Examples:
Example 1: Remove the Alibaba Cloud account test_user@test.aliyunid.com.
remove user ALIYUN$test_user@test.aliyunid.com;
Example 2: Remove the RAM user ram_test_user.
remove user RAM$ram_test_user;
Related statements
LIST USERS: Displays the information about users in a MaxCompute project.
ADD USER: Adds an Alibaba Cloud account or a RAM user to a MaxCompute project.