问题
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