Forum Discussion
PBI Access Token API
- 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.AllCheck your delegated permission in the app registered to validate that.
I hope that make sense
Hi,
Using this access token URL "URL: https://login.microsoftonline.com/common/oauth2/token" Im getting the access token but when I pass this token in "Export Report In Group" API. We are getting unauthorized.
This authentication is not working for Report API.
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