根据指定条件获取企业成员信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求语法
GET /organization/{organizationId}/members/{accountId} HTTP/1.1
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 | 
|---|---|---|---|---|
| organizationId | string | 是 | 企业标识,也称企业 id | 66c0c9fffeb86b450c199fcd | 
| accountId | string | 是 | 阿里云用户 UID | 123456677888 | 
返回参数
示例
正常返回示例
JSON格式
{
  "requestId": "HC93CE1A-8D7A-13A9-8306-7465DE2E5C0F",
  "errorMessage": "error info",
  "member": {
    "accountId": "123456677888",
    "birthday": 1631845101798,
    "deptLists": [
      "测试部门"
    ],
    "email": "123@mail.com",
    "hiredDate": 1631845101798,
    "identities": {
      "externUid": "1236666",
      "provider": "Dingtalk"
    },
    "joinTime": 1631845101798,
    "lastVisitTime": 1631845101798,
    "mobile": "1390000****",
    "organizationMemberName": "名字1",
    "organizationRoleName": "管理员",
    "jobNumber": "373***",
    "organizationRoleId": "8fc0c9ff039711dd64acd000",
    "state": "normal"
  },
  "errorCode": "null",
  "success": true
}错误码
| HTTP status code | 错误码 | 错误信息 | 描述 | 
|---|---|---|---|
| 400 | InvalidUser.UserNotInCurrentOrganization | The user is not in the organization. | 当前用户不在该企业中 | 
| 403 | Forbidden.UserNotAdminOrOwner | The current user is not an admin or owner in the organization and is not authorized to perform the operation. | 当前用户非该企业管理员或拥有者,无权进行操作。 | 
| 404 | InvalidOrganization.NotFound | The organization is not found. | 企业不存在,请检查企业ID是否正确 | 
访问错误中心查看更多错误码。
变更历史
| 变更时间 | 变更内容概要 | 操作 | 
|---|---|---|
| 2023-11-27 | OpenAPI 错误码发生变更、OpenAPI 返回结构发生变更 | 查看变更详情 | 
| 2021-09-22 | 新增 OpenAPI | 查看变更详情 | 
