I need an access token from AAD (in non-interactive way) to access the PowerBI service.
Here is what I have:
- a
Native application
created inAzure Active Directory
with PowerBI permissions - a
client_id
andclient_secret
of the Native application - a
Console application
where I am passing theclient_id
,user_email
anduser_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?