Access Office 365 Discover Service with “app-only” token

て烟熏妆下的殇ゞ 提交于 2020-01-24 19:40:48

问题


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'}} 

回答1:


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.



来源:https://stackoverflow.com/questions/29245356/access-office-365-discover-service-with-app-only-token

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!