Forum Discussion
get reports from power bi api
- 3 years ago
Hi Sergio,
It's in the PowerBI portal (https://app.powerbi.com)
The portal has changed since I posted the original response, but I think you just need to click the three dots, then there should be a link to update the workspace access. You need to add the service principal (the application).
Let me know if you are still stuck.
I managed to get the API working, although it is next to useless for what I wanted to do 🙂
Hi sergiocascales ,
Hoping this might help you...
If you have managed to get a token (using service principle(application ID) and client_id), then you need to go into PowerBI Admin centre and enable the option 'Allow service principals to create and use profiles' ("Settings -> Governance and insights -> Admin portal -> Tenant settings -> Dataset Execute Queries REST API").
Then, you will need to grant the service principle access to the workspaces.
Workspace -> Manage Access
Then if you use the API (https://api.powerbi.com/v1.0/myorg/groups/), the workspace should be visible.
Have a look at this link:
https://learn.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal
Hope that helps.
Kind regards,
Ben.