通过“仅应用"访问Office 365发现服务代币 [英] Access Office 365 Discover Service with "app-only" token
本文介绍了通过“仅应用"访问Office 365发现服务代币的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用通过遵循客户端凭证授予流程,但它会退回访问被拒绝的权限.有办法使这项工作吗?
I am trying to query Office 365 Discovery Service REST API using "app-only" token obtained by following client credential grant flow but it gives back Access denied. Is there a way to make this work?
{u'error': {u'message': u'Access denied. You do not have permission to perform this action or access this resource.', u'code': u'-2147024891, System.UnauthorizedAccessException'}}
推荐答案
发现服务不支持仅应用令牌,因为发现的目标是为应用提供给定用户的端点. 也就是说,此处提供的错误消息不是很有用,我们将采取后续措施进行更新. 谢谢你.
Discovery service does not support app-only token since Discovery’s goal is to provide the app with the endpoints for a given user. That said the error message provided here is not very useful, we will take the follow up to update it. Thank you.
这篇关于通过“仅应用"访问Office 365发现服务代币的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文