Elimina el usuario de la organización especificado.
Pruébelo ahora
Test
Autorización de RAM
|
Action |
Nivel de acceso |
Tipo de recurso |
Clave de condición |
Acción dependiente |
|
quickbi-public:DeleteUser |
delete |
*All Resource
|
Ninguna | Ninguna |
Parámetros de la solicitud
|
Parámetro |
Tipo |
Obligatorio |
Descripción |
Ejemplo |
| UserId |
string |
Sí |
El ID del usuario que se va a eliminar. Este ID de usuario es el UserID de Quick BI, no el UID de Alibaba Cloud. |
fe67f61a35a94b7da1a34ba174a7**** |
| TransferUserId |
string |
No |
El ID del sucesor. Si no está vacío, los recursos de informes en el espacio de trabajo del usuario eliminado se transferirán al sucesor; de lo contrario, se transferirán al propietario del espacio.
|
f5****afccd9e434a274 |
Elementos de la respuesta
|
Elemento |
Tipo |
Descripción |
Ejemplo |
|
object |
|||
| RequestId |
string |
ID de la solicitud. |
DC4E1E63-B337-44F8-8C22-6F00DF67E2C3 |
| Result |
boolean |
Devuelve el resultado de ejecución de la interfaz. Valores posibles:
|
true |
| Success |
boolean |
Indica si la solicitud se realizó correctamente. Valores posibles:
|
true |
Ejemplos
Respuesta exitosa
JSON Formato
{
"RequestId": "DC4E1E63-B337-44F8-8C22-6F00DF67E2C3",
"Result": true,
"Success": true
}
Códigos de error
|
Código de estado HTTP |
Código de error |
Mensaje de error |
Descripción |
|---|---|---|---|
| 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. |
Consulte Códigos de error para ver la lista completa.
Notas de la versión
Consulte Notas de la versión para ver la lista completa.