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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With