文档

ImportUser - 导入用户

更新时间:

导入用户。

调试

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

授权信息

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

请求语法

POST /v2/user/import

请求参数

名称类型必填描述示例值
bodyobject

请求体参数。

authentication_typestring

认证类型

  • mobile:手机号

  • email:邮箱

  • ding:钉钉

  • ram:阿里云 RAM 子账号

  • wechat:企业微信

  • ldap:LDAP 账号

  • custom:自定义账号

mobile
identitystring

唯一身份标识

130****
authentication_display_namestring

认证方式的显示名称

10000
extrastring

额外信息

authentication_type 为 mobile 时,此字段为国家编号,不填默认 86。

1
nick_namestring

昵称

pdsuer
auto_create_driveboolean

自动创建空间

false
drive_total_sizelong

空间大小,不能小于-1,-1 表示无限制

10240
parent_group_idstring

加入到的分组 id

g12

返回参数

名称类型描述示例值
User

用户信息

示例

正常返回示例

JSON格式

{
  "domain_id": "bj1",
  "user_id": "c9b7a5aa04d14ae3867fdc886fa01da4",
  "avatar": "http://aa.com/1.jpg",
  "created_at": 1639762579768,
  "updated_at": 1639762579768,
  "email": "a@aliyunpds.com",
  "nick_name": "001",
  "phone": "13900001111",
  "role": "user",
  "status": "enabled",
  "user_name": "pds",
  "description": "vipuser",
  "default_drive_id": "1",
  "user_data": {
    "key": ""
  },
  "creator": "user1",
  "punishments": [
    {
      "punish_flag": 0,
      "starts_at": "",
      "ends_at": "",
      "impermanent": true
    }
  ],
  "is_sync": true
}

错误码

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

  • 本页导读 (0)
文档反馈