Forum Discussion
Access Datasets using PowerBI REST API from Java
You need to give the App the corresponding permission to access Power BI resources:
Follow the steps below:
Register an Azure AD app to embed Power BI content
https://docs.microsoft.com/en-us/power-bi/developer/register-app
Follow the Through Azure Portal part.
Regards,
Michael
- absmiths8 years agoRegular Visitor
I went through those steps a couple of different times, and it hasn't worked. I have tried creating a user using the pbi developer access page and using the azure ad portal directly. I still only get an 'Unauthorized' response.
One part I can't follow is granting the AD permission "Access the directory as the signed in user". My org prohibits this but it doesn't seem necessary anyway since I am not doing impersonation. Also, in my case I am using a web API instead of a native application type. Is this required for accessing the dataset refresh API?