文档

Quick BI中添加企业微信类型的用户,发现企业微信账号未同步过来,后台接口报错“com.alibaba.yunbi.v2.common.util.exception.AppRuntimeException: AE0579110007:call weixin api error, ${0}, AUTHX_04001 | Corp Weixin interface return error | no privilege to access/modify contact/party/agent”

更新时间:
一键部署

问题描述

Quick BI中添加企业微信类型的用户,发现企业微信账号未同步过来,后台接口报错“com.alibaba.yunbi.v2.common.util.exception.AppRuntimeException: AE0579110007:call weixin api error, ${0}, AUTHX_04001 | Corp Weixin interface return error | no privilege to access/modify contact/party/agent”。

后台接口提示的报错信息如下:

code: "AE0579110007"
data: null
exStack: "com.alibaba.yunbi.v2.common.util.exception.AppRuntimeException: AE0579110007:call weixin api error, ${0}, AUTHX_04001 | Corp Weixin interface return error | no privilege to access/modify contact/party/agent , hint: [1651828746408542713383042], from ip: 113.200.102.131, more info at https://open.work.weixin.qq.com/devtool/query?e=60011\n\tcom.alibaba.yunbi.v2.organization.service.corpweixin.CorpWeixinServiceImpl.getWeixinDeptList(CorpWeixinServiceImpl.java:262)\n\tcom.alibaba.yunbi.v2.organization.service.corpweixin.CorpWeixinServiceImpl.getWeixinDeptListWithCache(CorpWeixinServiceImpl.java:304)\n\tsun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n......\n"
message: "调用企业微信接口失败: "
queryErrMsg: null
querySql: null
success: false
traceId: "83163446-228e-46d0-b60c-b46099944aac"

问题原因

企业微应用中设置的企业微信通讯录不是全员导致。

解决方案

在企业微应用中设置的企业微信通讯录可见范围为全员:

适用于

  • Quick BI
  • 本页导读
文档反馈