Reputation: 382
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'}}
Upvotes: 1
Views: 331
Reputation: 1806
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.
Upvotes: 0