GetUserByToken - 根据个人访问令牌查询对应用户信息

根据个人访问令牌查询对应用户信息。

适用版本

企业专属版、企业标准版

服务接入点

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

授权信息

产品

资源

所需权限

组织管理

用户

只读

请求语法

GET https://{domain}/oapi/v1/platform/user

请求说明

企业标准版

根据个人访问令牌查询对应用户信息

curl -X 'GET' \
  'https://openapi-rdc.aliyuncs.com/oapi/v1/platform/user' \
  -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/user' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

请求头(Headers)

x-yunxiao-token string (必选)

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

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

请求参数

返回参数

返回示例

{
    "createdAt": "2025-05-16T22:44:50.048Z",
    "email": "test****@example.com",
    "id": "99d1****6124",
    "lastOrganization": "99d1****6124",
    "name": "示例用户名",
    "staffId": "123****",
    "sysDeptIds": ["99d1****6124"],
    "username": "demo**username"
}

createdAt string

创建时间。

email string

邮箱。

id string

用户 ID。

lastOrganization string

上次登录组织。

name string

显示名称。

staffId string

工号。

sysDeptIds array[string]

所属部门。

username string

登录账号名。

错误码

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