none
Mirosoft Graph API gives unsupported privileges error RRS feed

  • Question

  • I have created the app in apps.dev.microsoft.com . I am using https://login.microsoftonline.com/common/oauth2/v2.0/authorize for authorization code and https://login.microsoftonline.com/common/oauth2/v2.0/token for access and refresh tokens. I am getting the access token successfully but when I am trying to read the signed in user's profile data it gives me the error :

    Array (
        [error] => Array
            (
                [code] => Authorization_RequestDenied
                [message] => Insufficient privileges to complete the operation.
                [innerError] => Array
                    (
                        [request-id] => 02269b14-2cf9-458e-b9d6-2aec1a23cee3
                        [date] => 2017-02-23T16:30:44
                    )

            )

    )
    When I use the original Id with which the app was created then this error doesn't show up . But when I use any other id outside my tenancy this error shows up. Can anyone suggest any workaround for this?

    I have created the app in apps.dev.microsoft.com . I am using https://login.microsoftonline.com/common/oauth2/v2.0/authorize for authorization code and https://login.microsoftonline.com/common/oauth2/v2.0/token for access and refresh tokens. I am getting the access token successfully but when I am trying to read the signed in user's profile data it gives me the error :

    Array (
        [error] => Array
            (
                [code] => Authorization_RequestDenied
                [message] => Insufficient privileges to complete the operation.
                [innerError] => Array
                    (
                        [request-id] => 02269b14-2cf9-458e-b9d6-2aec1a23cee3
                        [date] => 2017-02-23T16:30:44
                    )
    
            )
    
    )
    

    When I use the original Id with which the app was created then this error doesn't show up . But when I use any other id outside my tenancy this error shows up. Can anyone suggest any workaround for this?


    • Edited by Mainak009 Thursday, February 23, 2017 4:51 PM
    Thursday, February 23, 2017 4:50 PM

Answers

All replies