Skip to main content
组织成员

SearchMembers - 搜索成员列表

通过 OpenAPI 搜索成员列表。
适用版本:企业专属版、企业标准版
服务接入点:获取服务接入点,替换 API 请求语法中的 {domain} 。

授权信息

产品资源所需权限
组织管理组织成员只读

请求语法

POST https://{domain}/oapi/v1/platform/organizations/{organizationId}/members:search

请求说明

  • 企业标准版
  • 企业专属版
  • 搜索成员列表
curl -X 'POST' \
  'https://openapi-rdc.aliyuncs.com/oapi/v1/platform/organizations/99d1****71d4/members:search' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484' \
  --data '
    {
        "deptIds": ["99d1****6124"],
        "includeChildren": false,
        "nextToken": "",
        "query": "phw",
        "roleIds": ["99d1****6124"],
        "statuses": ["ENABLED"]
    }'

请求头(Headers)

x-yunxiao-token string (必选) 个人访问令牌。您可参考个人访问令牌获取。 示例:pt-0fh30fbG_35af0484。

请求参数

string
path
required
组织 ID。您可前往组织管理后台的基本信息页面获取组织ID(organizationId) 。
array[string]
path
所属部门列表,可以为空。
boolean
path
default:"false"
【仅专属版适用】是否包含子部门,true:包含,false:不包含。当 deptIds 为空时,该字段无意义。
string
path
翻页标识。
integer
path
default:"1"
【仅专属版适用】当前页。
integer
path
default:"100"
【仅专属版适用】每页数据条数,取值范围:[1,100]。
string
path
查询参数。
array[string]
path
角色列表,可以为空。
array[string]
path
default:"ENABLED"
成员状态过滤,默认返回状态为 ENABLED 的成员。可选值:ENABLED,DISABLED,UNDELETED,DELETED,NORMAL_USING,UNVISITED。ENABLED=NORMAL_USING+UNVISITED;UNDELETED=ENABLED+DISABLED。

返回参数

  • 返回示例
[
    {
        "deptIds": ["99d1****6124"],
        "id": "99d1****6124",
        "joined": "2023-08-31T03:59:16.201Z",
        "lastUpdated": "2023-08-31T03:59:16.201Z",
        "name": "示例名",
        "organizationId": "99d1****6124",
        "roleIds": ["99d1****6124"],
        "status": "ENABLED",
        "userId": "99d1****6124",
        "visited": "2023-08-31T03:59:16.201Z"
    }
]
array[string]
所属组织部门列表。
string
成员 ID。
string
加入时间,等于数据库的创建时间。
string
最后更新时间,等于数据库的更新时间。
string
成员名。
string
组织 ID。
array[string]
角色信息。
string
成员状态。可选值:ENABLED,DISABLED,UNDELETED,DELETED,NORMAL_USING,UNVISITED。
string
用户 ID。
string
最后访问时间。

响应头

参数描述示例值
x-next-page【仅专属版适用】下一页。1
x-page【仅专属版适用】当前页。2
x-per-page【仅专属版适用】每页数据条数。1
x-prev-page【仅专属版适用】上一页。2
x-total【仅专属版适用】总数据量。1
x-total-pages【仅专属版适用】总分页数。3

错误码

访问查看 API 相关错误码。
产品概述
操作指南
实践教程
  • 编码使用实践
开发参考