Forum Discussion
ricardofarmer
Apr 19, 2024Copper Contributor
PowerBI REST API v2.0 in Azure Data Factory
Hi, I am encountering issues executing the GET command to retrieve data model role assignments using PowerBI REST API (version 2.0) through Azure Data Factory. I aim to automate this process within ...
ricardofarmer
Apr 22, 2024Copper Contributor
Thanks, 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.
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.
AMeyersen
Apr 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.