Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AADSTS90093: Does not have access to consent in office365

I am using Office365 Rest api's to write into users onedrive for business. When i try to get the OAuth token by passing the Client ID, Client Secrete, Resource(https://****-my.sharepoint.com),RedirectUri(https://*******) I am getting the following error."AADSTS90093: Does not have access to consent" in office365

Where as I am able to get the authcode , access token ,refresh token for other users, only for couple of user's I am facing the above mentioned issue

Error Screen

like image 903
Kirthi35 Avatar asked Dec 03 '14 11:12

Kirthi35


1 Answers

Is this a multi-tenant app? Are the users that get the error all from specific Office 365 organizations? That error can happen if the organization admin has disabled users' ability to give consent to 3rd-party apps. See http://blogs.msdn.com/b/exchangedev/archive/2014/06/05/managing-user-consent-for-applications-using-office-365-apis.aspx for details.

like image 70
Jason Johnston Avatar answered Oct 25 '22 16:10

Jason Johnston