This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.
Delete the specified organization user.
Debugging
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 Resourcesis 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.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| quickbi-public:DeleteUser | delete | *All Resources * |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| UserId | string | Yes | The ID of the user to be deleted. This user ID is the Quick BI UserID, not the Alibaba Cloud UID. | fe67f61a35a94b7da1a34ba174a7**** |
| TransferUserId | string | No | The ID of the successor. If not empty, the report resources in the workspace of the deleted user will be transferred to the successor; otherwise, they will be transferred to the space owner.
| f5****afccd9e434a274 |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "DC4E1E63-B337-44F8-8C22-6F00DF67E2C3",
"Result": true,
"Success": true
}Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 400 | CannotRemove.OrganizationOwner | You cannot remove the organization owner from the organization. | You cannot remove the organization owner from the organization. |
| 400 | Member.ExistInWorkspace.Error | You cannot remove a user who is a member of a group workspace. | You cannot remove a user who is a member of a group workspace. |
| 400 | Workspace.Not.Exist | The group workspace does not exist. | The group workspace does not exist. |
| 400 | Workspace.Type.Error | The type of group workspace is invalid. | The type of group workspace is invalid. |
| 400 | Not.Organization.AuthAdmin | You are not a role administrator of the organization and do not have the permission to perform the operation. | You are not a role administrator of the organization and do not have the permission to perform the operation. |
| 400 | Works.Transfer.Error | You are not authorized to transfer this item. | You are not authorized to transfer this item. |
| 400 | CanNot.Remove.WorkspaceOwner | You cannot remove the group workspace owner from the group. | You cannot remove the group workspace owner from the group. |
| 400 | User.NotIn.Workspace | The user is not a member of the group workspace. | The user is not a member of the group workspace. |
| 400 | Transfer.TargetUser.NotExist | The new owner does not exist. Please ensure that the target user has logged on to the system. | The new owner does not exist. Please ensure that the target user has logged on to the system. |
| 400 | User.RoleType.Valid | The role ID is invalid. | The role ID is invalid. |
| 400 | Viewer.AddInTo.Workspace | Organization members with viewer type are not allowed to add to workspace: %s. | Organization members with viewer type are not allowed to add to workspace: %s. |
| 400 | UserAnalyst.NotSupport.ThisRole | This role has permissions that analysts cannot grant. | This role has permissions that analysts cannot grant. |
| 400 | Transfer.Not.Allowed | Transfer to users with lower space permissions is not allowed. | Transfer to users with lower space permissions is not allowed. |
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2023-08-07 | The Error code has changed | View Change Details |
