gbrueckl / PowerBI.API.Client

A C# wrapper for the Power BI REST API which allows you to easily integrate the Power BI API into your C# application.
MIT License
39 stars 14 forks source link

new PBIAPIClient(ApplicationID) does not work #10

Closed agnaldocarmo closed 5 years ago

agnaldocarmo commented 5 years ago

AADSTS650057: Invalid resource. The client has requested access to a resource which is not listed in the requested permissions in the client's application registration. Client app ID:

gbrueckl commented 5 years ago

So this actually means that you are using a functionality that your are not allowed to use according to permissions of your Azure application (identified by the ClientID/ApplicationID) for example, if the the application does not have the permission "View all Datasets" and you try to list the Datasets in the API Client, you will get that error. Thats by design and how Azure AD applications and their security works

To fix this, you need to extend the permissions of your Azure AD application

can you try this?

agnaldocarmo commented 5 years ago

in fact I tried to use in an application of the type Desktop WPF

gbrueckl commented 5 years ago

ok, so I will close this issue then