Forum Discussion

ekimakIA's avatar
ekimakIA
Frequent Visitor
4 years ago
Solved

PBI Access Token API

Hi,   I'm  trying to fetch pbi access token with this below api but I'm getting issue while executing this API.   API : https://token.docs.microsoft.com/accesstokens   In the header I'm passing...
  • ibarrau's avatar
    ibarrau
    4 years ago

    Hi. If you are getting a token that means the authentication is working perfect. The Unauthorized means that the ClientId doesn't have permission to do that.

    Be sure that you have what you need. Each request in the API has in its document the scope. For example the scope for exporting report in group is:
    Required scope: Report.ReadWrite.All or Report.Read.All

    Check your delegated permission in the app registered to validate that.

    I hope that make sense