Norman Drews on 19 Mar 2020 06:02:58
There is currently a REST API that refreshes user permissions but not one that retrieves existing user permissions against a PBI artifact. Extending it to include adding a user and viewing / setting permissions would be a great addition.
I can see a need where a customer would want an admin report the lists also user and their associated permissions for a PBI artifact such as a dataset or report.
I can also see a need where we might want to add multiple users and give them permissions to an artifact.
- Comments (3)
RE: REST API to View/Set user permissions
We will need to add multiple external users to a Power BI report , so it would be great if we can achieve this via an API or a Power Shell Script. Currently it is possible to add users to Workspace, but not specifically to Dataset or Report in an automated fashion.
RE: REST API to View/Set user permissions
Would also be incredibly useful to programmatically pull who's pending access to a given report / app as well.
RE: REST API to View/Set user permissions
Yes ability to set user permissions via API would be awesome. I am doing a pilot with 200 users so using the individual AD accounts. but the Viewer permission at workspace results in Build permission on the dataset.
To remove the build data sets I have been doing it manually (https://docs.microsoft.com/en-us/power-bi/connect-data/service-datasets-build-permissions)
Would be good to do this programmatically.