I need an access token from AAD (in non-interactive way) to access the PowerBI service.
Here is what I have:
- a
Native applicationcreated inAzure Active Directorywith PowerBI permissions - a
client_idandclient_secretof the Native application - a
Console applicationwhere I am passing theclient_id,user_emailanduser_password.
I have tried different users' credential,
- Normal user's credential
- Admin's credential
- Service account's credential
For all, I am getting following error while getting the token
Additional information: AADSTS65001: The user or administrator has not consented to use the application with ID ''. Send an interactive authorization request for this user and resource.
Here is the reference which I used https://msdn.microsoft.com/en-in/library/partnercenter/dn974935.aspx
What can be the possible reasons for this?