在 Office 365 中安装应用程序时出错:AADSTS650051:应用程序 'CLIENT_ID' 正在请求无效或过时的权限

Error on installing apps in office 365 : AADSTS650051: Application 'CLIENT_ID' is requesting permissions that are either invalid or out of date

我在 AAD 应用程序上有几个多租户应用程序请求访问邮件、日历、联系人和任务。这些应用程序成功运行了几年没有任何问题,但最近几天开始出现错误:

"AADSTS650051: Application 'CLIENT_ID' is requesting permissions that are either invalid or out of date"

全部!!!应用程序权限设置中没有任何更改。因此,新域现在无法安装这些应用程序。

从已安装的域中删除应用程序并重新安装,没有帮助。

请指教。 谢谢

问题与错误消息中描述的完全一样。您的应用的凭据已过期。

转到 Azure AD -> 应用注册 -> 你的应用 -> 创建新密钥

好吧,发现一个问题 - 两个权限,其中一个是 Deprecated_ThreatIntelligence.Read,无法删除它,当尝试删除时成功了,但权限又出现了。在与 MS 支持(付费支持,经过 48 小时 phone 和电子邮件对话)交谈后,他们什么也没得到:

I would like to inform you that I have reached out to my peer engineers with all this information and waiting for their suggestion to proceed with further investigation on it.

I would request you to allow me sometime so that I can discuss with my peer engineers and get back to you with an update on it.

别无选择,需要尽快解决这个问题,找到了删除的方法,下载了清单(这是一个应用程序配置 JSON),删除了有问题的权限(这不是一件容易的事,因为只有guids)并再次上传清单。问题解决了。 微软支持的耻辱!!!!我见过的无用的付费支持之一。除了等待工程师的反馈,什么也做不了。这个问题应该在 5-10 分钟内由支持人员解决,一旦他们有请求 ID 和关联 ID,但他们直到现在还没有找到解决方案。对微软感到羞耻,过去 10 天因为他们奇怪的错误而失去了客户。

此弃用警告已在文档中存在一段时间了。范围的删除刚刚发生在最近几个月内。

https://docs.microsoft.com/en-us/office/office-365-management-api/get-started-with-office-365-management-apis#specify-the-permissions-your-app-requires-to-access-the-office-365-management-apis

第 3 段