Quick BI独立部署环境调用OpenAPI接口将Quick BI账号和飞书账号绑定报错“AUTHX_08001 | Feishu interface return error | The request you send is not a valid {user_id} or not exists”

更新时间:
复制为 MD 格式

【问题描述】

Quick BI独立部署环境调用OpenAPI接口将Quick BI账号和飞书账号绑定报错“AUTHX_08001 | Feishu interface return error | The request you send is not a valid {user_id} or not exists”

调用代码如下:

image.png

详细报错信息如下:

飞书网络请求失败: AUTHX_08001 | Feishu interface return error | The request you send is not a valid {user_id} or not exists, and the example value is {64*******87}. Invalid ids: [XXXXXXXX575d] . Please see field_violations for details and refer to API documentation to correct accordingly and resubmit

【解答】

接口/openapi/v2/organization/user/mobileBinding中的mobileUserId的参数传递不对,这个参数传递的是飞书账号的userId,需要通过调用飞书接口或者在飞书超管后台获取。接口说明文档如下:

image.png

飞书超管后台获取飞书userId的方法:

image.png

【适用于】

独立部署5.0.3