本文介绍了Office JS Api - 权限被拒绝问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发 Excel 插件,清单具有 ReadWriteDocument 权限.

I'm working on an addin for Excel, the manifest has permission for ReadWriteDocument.

我正在向 Office.EventType.DocumentSelectionChanged 事件添加一个处理程序

I'm adding a handler to Office.EventType.DocumentSelectionChanged Event

第一次,我在 Excel Online 中插入插件,效果很好.

First time, I insert the addin in Excel Online, it works perfectly.

稍后如果访问 Excel,它会失败:

Later if the access the Excel, it fails with:

OSF.DDA.Error
code: 7000
message: "You don't have sufficient permissions for this action."
name: "Permission Denied"

推荐答案

我也看到了这个问题,我们深入研究并发现它实际上是旁加载功能中的一个错误.现已修复,请重试!

I was seeing this issue as well, and we dug into it and discovered it was in fact a bug in the sideloading feature. It is now fixed, so please try it again!

干杯,哈里森

这篇关于Office JS Api - 权限被拒绝问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-25 13:58