Search code examples
azureactive-directoryoffice365office365apioffice365-restapi

Office365 OAuth API returns error "AADSTS90093: Does not have access to consent"


I have an Azure app requesting the following Delegated Permissions:

  • Office 365 Exchange Online (Read user profile, Read user contacts, Read user calendars and Read user mail)
  • Windows Azure Active Directory (Sign in and read user profile)

So far, most users have had no major problems signing in, but I recently had a user getting an error AADSTS90093: Does not have access to consent.

From what I could gather this means the user's Active Directory admin has prevented them from granting access to third party apps. Am I right? If so, is there anything I can do code- or app-configuration-wise, without bothering my users or AD admins?

(I'm new to working with Azure and Office365, so please let me know if I'm way off, I honestly have no idea what I'm doing)


Solution

  • Yes that's right. There's nothing you can do to get around it, the admin has blocked the user from using OAuth.