适用于Android的Outlook加载项:尝试访问userProfile的异常.访问Javascript API-Office受保护成员所需的高权限 [英] Outlook Add-in for Android :Exception trying to access userProfile. Elevated Permission required to access protected members of Javascript API-Office

查看:75
本文介绍了适用于Android的Outlook加载项:尝试访问userProfile的异常.访问Javascript API-Office受保护成员所需的高权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们注意到,当我们尝试访问Office.context.mailbox.userProfile以获得登录用户的电子邮件地址和显示名称时,我们遇到了异常,并且该应用程序未加载. 加载项可在以下位置正常工作:

We have noticed that when we try to access Office.context.mailbox.userProfile in order to get the Logged in user email address and display name, we are getting an exception and the app doesn't load. The Add-in works properly on :

  • Web客户端Windows和Mac
  • 桌面平台应用Windows和Mac
  • iOS Outlook Mobile应用

办公室文档中提到,[API集:邮箱1.0]可以访问userProfile

The office documentation mentions, userProfile is accessible for [ API set: Mailbox 1.0 ] https://docs.microsoft.com/en-us/javascript/office/objectmodel/preview-requirement-set/office.context.mailbox.userprofile?view=office-js

我们的目标是API版本1.3,该版本支持Android的Outlook. https: //docs.microsoft.com/zh-CN/javascript/office/requirement-sets/outlook-api-requirement-sets?view=office-js

We are targeting the API Version 1.3, which supports Outlook for Android. https://docs.microsoft.com/en-us/javascript/office/requirement-sets/outlook-api-requirement-sets?view=office-js

它曾经在Android上也可以使用,直到一周前.但是突然我们看到了这个错误.

It used to work on Android as well till a week before. But suddenly we are seeing this error.

错误:访问受保护的成员需要提升的权限 用于办公室的Javascript API.

Error : Elevated Permissions is required to access Protected members of the Javascript API for office.

无法加载用户个人资料数据

我们尝试使用以下命令在控制台上查询userProfile window.Office.context.mailbox.userProfile 它返回相同的错误. 在控制台上查询用户配置文件时出错

We tried to query the userProfile on console using window.Office.context.mailbox.userProfile It returns the same Error. Error when query userprofile on console

此外,如果我们查询window.Office.context.mailbox 并检查userProfile对象的权限,它显示权限0. userProfile对象的权限0

Also, if we query window.Office.context.mailbox and check the permissions on the userProfile object, it shows Permissions 0. Permissions 0 for userProfile object

这里可能是什么问题?

What could be the issue here ?

推荐答案

对于给您带来的不便,我们深表歉意.此问题已在几天前得到解决,由于解决方案将包含在生产版本中,因此很快将重新开始工作. 问题出在Android Outlook加载项的框架方面.它提供了错误权限的消息上下文.

Sorry for inconvenience, This issue has been fixed few days ago, Soon it will start working again as solution will be included in production build. Issue was at framework side of Android Outlook Add-ins. It was providing message context with wrong permission.

这篇关于适用于Android的Outlook加载项:尝试访问userProfile的异常.访问Javascript API-Office受保护成员所需的高权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆