Forum Discussion
PowerBI REST API v2.0 in Azure Data Factory
ricardofarmer In your example, you reference the Power BI Report Server REST API. This is different from the general Power BI REST API.
https://learn.microsoft.com/en-us/power-bi/report-server/rest-api
https://learn.microsoft.com/en-us/rest/api/power-bi/
The PBI Report Server is an on-premise service, so the service endpoint is different from the Power BI cloud endpoint. You should also check the firewall rules of your on-premise network in which your Report Server is hosted.
So it's not about two different API versions but two entirely different REST APIs.
- ricardofarmerApr 22, 2024Copper ContributorThanks, for your reply AMeyersen.
Let me rephrase my question differently as the dashboards are published in the cloud.
Is it possible to take the role assignments from PowerBI cloud with the PowerBI Rest API of a similar cloud based API. If so, how?
As I'm not able to find information regarding this matter in the documentation besides the PowerBI Report Server Rest API, which is an on-premise service.- AMeyersenApr 23, 2024Copper Contributor
ricardofarmer you might be able to use the Admin API to achieve your goal.
https://learn.microsoft.com/en-us/rest/api/power-bi/admin/reports-get-report-users-as-admin
Make sure you have enabled the admin API and your service principal has sufficient permissions.