查询成员信息

通过 OpenAPI 查询成员信息。

适用版本

企业专属版、企业标准版

服务接入点

获取服务接入点,替换 API 请求语法中的 {domain}

授权信息

产品

资源

所需权限

组织管理

组织成员

只读

请求语法

GET https://{domain}/oapi/v1/platform/organizations/{organizationId}/members/{id}

请求说明

企业标准版

查询成员信息

curl -X 'GET' \
  'https://openapi-rdc.aliyuncs.com/oapi/v1/platform/organizations/99d1****71d4/members/3a41****3eca' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

企业专属版

查询成员信息

curl -X 'GET' \
  'https://test-domain-***.rdc.aliyuncs.com/oapi/v1/platform/organizations/99d1****71d4/members/3a41****3eca' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

请求头(Headers)

x-yunxiao-token string (必选)

个人访问令牌。您可参考个人访问令牌获取。

示例:pt-0fh3****0fbG_35af****0484。

请求参数

organizationId string (必选)

组织 ID。您可前往组织管理后台的基本信息页面获取组织ID(organizationId)

id string(必选)

组织成员 ID。您可参考ListMembers接口获取。

返回参数

返回示例

{
    "deptIds": ["99d1****6124"],
    "id": "99d1****6124",
    "joined": "2023-08-31T03:59:16.201Z",
    "name": "示例名",
    "email": "example@example.com",
    "organizationId": "99d1****6124",
    "roleIds": ["99d1****6124"],
    "status": "ENABLED",
    "userId": "99d1****6124",
    "visited": "2023-08-31T03:59:16.201Z"
}

deptIds array[string]

所属组织部门列表。

id string

成员 ID。

joinedstring

加入时间,等于数据库的创建时间。

name string

成员名。

email string

邮箱。

organizationIdstring

组织 ID。

roleIdsarray[string]

角色信息。

statusstring

成员状态。

可选值:ENABLED,DISABLED,UNDELETED,DELETED,NORMAL_USING,UNVISITED

userIdstring

用户 ID。

visitedstring

最后访问时间。

错误码

访问错误码中心查看 API 相关错误码。