TransferUsergroup - 迁移用户组

更新时间:
复制 MD 格式

迁移用户组。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求语法

POST  HTTP/1.1

请求参数

名称

类型

必填

描述

示例值

UserGroupId

string

需要迁移的用户组 ID

12qwda****sdada

ParentUserGroupId

string

父用户组 ID

asdasva***123124asdasd

返回参数

名称

类型

描述

示例值

object

RequestId

string

请求 ID。

DC4E1E63-B337-44F8-8C22-6F00DF67E2C3

Result

boolean

迁移是否成功

true

Success

boolean

是否请求成功。取值范围:

  • true:请求成功

  • false:请求失败

true

示例

正常返回示例

JSON格式

{
  "RequestId": "DC4E1E63-B337-44F8-8C22-6F00DF67E2C3",
  "Result": true,
  "Success": true
}

错误码

HTTP status code

错误码

错误信息

描述

400 Internal.System.Error An internal system error occurred. 系统内部异常。
400 Invalid.User.Admin You are not an administrator of this organization. 没有权限,您不是组织管理员。
400 Usergroup.Not.Exist The user group does not exist. 用户组不存在。
400 UserGroup.Parent.NotFound The parent user group does not exist. 父用户组不存在。
400 DeletePermission.UserBelongsToUsergroup.Error cannot be deleted because user belongs to usergroup: %s. 无法删除,因为当前用户属于用户组:%s。
400 Duplicate.UserGroup.Id Duplicated usergroupId %s. 重复的用户组ID %s。
400 Duplicate.UserGroupName.Error There is already a user group with the same name %s, please rename it before saving. 已经存在同名用户组“%s”,请修改名称后再保存。
400 RootUserGroup.Create.Error organization %s has synchronized with other organizational structures, so user groups cannot be created under the root user group. 该组织%s已经同步过其他组织架构,因此无法在根用户组下创建用户组。
400 User.CanOnlyAddTo.BIUserGroup User can only add to BI user group. 用户只允许添加进BI组织架构及子用户组。
400 UserGroup.Already.Synchronized Organization has synchronized with other organizational structures, so you are not allowed to add users under group. 该组织已经同步过其他组织架构,因此无法在根用户组下新增用户。
400 Usergroup.CannotTransfer.OtherOrganzation usergroup can't be transfered to other organization. 不允许移动到其他组织的用户组下。
400 Usergroup.CannotTransfer.UnderChildren usergroup can't be transfered to under chidlren. 用户组不允许移动到子用户组下。
400 UserGroup.ExceedsLimit.Error User group exceed limit, %s. 用户分组限制
400 Usergroup.TransferNotChanged.Error usergroup can't be transfered without any changed. 父用户组未发生改变,无需移动。
400 Usergroup.TypeTransfer.NotSupport Unsupported type of user group or target user group. 不支持的用户组或目标用户组类型。
500 UserGroup.Update.RootNode The root user group cannot be updated. 根用户组不允许更新。

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情