Skip to main content

Power BI

Needs Votes

REST API to View/Set user permissions

Vote (23) Share
Norman Drews's profile image

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)
Norman Drews's profile image Profile Picture

Venu Kesireddy on 18 Jan 2022 00:09:15

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.

Norman Drews's profile image Profile Picture

Derek Ritschel on 22 Nov 2021 22:56:20

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.

Norman Drews's profile image Profile Picture

Heidi Hasting on 06 Jul 2020 00:15:03

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.