OneDrive for Business and Azure AD native client application authorization RRS feed

  • Question

  • Hello, I've faced ODB (OneDrive for Business) authorization issues with my .net application which is using OD (OneDrive) REST API.

    I am using OAuth authorization workflow and made app to authorize accordingly to this OD developers portal documentation page. The only difference is that I provide no client secret as native client AAD (Azure AD) apps doesn't support secrets and BTW I think it's not described anywhere on that dev portal - I found this method by myself). Before I found it I was using AAD web application but currently it's about native client application.

    The problem is that I cannot authorize my app for external tenant directory while for my directory (where the app has been added) I can authorize it for any user. When I try to authorize non global admin users I always get wrong request error with following description:

    AADSTS90093: Calling principal cannot consent due to lack of permissions.

    I played with various roles for simple users and it even feels that a user initially created with non global admin role won't be authenticated even with global admin role set (I checked it both on azure directory users management page and on Office 365 admin app active users page.

    So the first question is - what should I do as a Office 365 or AAD admin to let my users to authorize some external app. Or maybe it is about my app delegated permissions?

    Here are my current permissions delegated for 2 applications:

    "Office 365 SharePoint Online" application:
    - Read and write user files
    "Windows Azure Active Directory" application:
    - Read directory data
    - Access your organization's directory

    Currently it just makes usage of our ODB app impossible for external users which are not on my original tenant (for testing purposes I used trial Azure and Office 365 Mid Business accounts).

    Regards, Vadim.


    I was previously asking this question and was redirected here from two following MS support forums:

    Thursday, August 20, 2015 10:37 AM

All replies