Skip to main content

Power BI

Needs Votes

REST API for managing roles of datasets

Vote (257) Share
Tamás Vidó's profile image

Tamás Vidó on 27 Apr 2016 20:56:42

Row-level security enabled by roles for datasets feature released in March 2016. is great but a manual process. It should be enabled via Rest API too. That would allow synchronization of user roles with custom applications automatically.

Comments (37)
Tamás Vidó's profile image Profile Picture

367cc669 a2b7-4f31-ab70-2160b9f3fc01 on 05 Jul 2020 23:14:15

RE: REST API for managing roles of datasets

I'm in the same boat as Eric. I need RLS setup for datasets created by the API. Is there an update on this?

Tamás Vidó's profile image Profile Picture

ed11fc78 4be5-4cb9-acfd-1d149d9d0f70 on 05 Jul 2020 23:13:49

RE: REST API for managing roles of datasets

Is there any update on this feature request?

I need to only allow access to data through RLS based on regions an admin user can dynamically add/delete/alter in our application. In order to do this I need to be able to create/delete new roles programmatically as our client's admin creates/deletes these regions.

Without this feature there isn't a workable solution that I can see

Tamás Vidó's profile image Profile Picture

a87e5085 a94e-439b-8b53-f1f0ac9c9f41 on 05 Jul 2020 23:08:01

RE: REST API for managing roles of datasets

'Until the API has been extended for programmatically adding roles, there's the following workaround.

- create a stock of unused roles and users once within Power BI Desktop and publish those with the report
- in your application keep track of which role has been already used
- on a new sign-up to your application get one of the available role/user
- update the underlying data for existing and new entries to comply with the chosen role/user

Tamás Vidó's profile image Profile Picture

a3309361 99be-ea11-a812-000d3a8ddfb2 on 05 Jul 2020 23:00:37

RE: REST API for managing roles of datasets

I would also really like this functionality. I agree with the last comment it is prone to mistakes. I have to open my pbix file and add the roles and then i have to reload my BPIX file (i use the API to do this and it's awesome). but if I had this functionality I wouldn't have to interact with the file ever again after the inial creation of the reports.
Are there any updates?

Tamás Vidó's profile image Profile Picture

73fb5474 88f8-41d6-8241-fe340e0b1bbd on 05 Jul 2020 22:48:28

RE: REST API for managing roles of datasets

GUI is an easy way, but it is prone to mistakes. Users/Groups should be able to assigned by APIs, PowerShell, etc. This is a required feature, especially if there are a lot of users.

Tamás Vidó's profile image Profile Picture

7fc686d5 722d-4162-806a-14efffa5186d on 05 Jul 2020 22:30:24

RE: REST API for managing roles of datasets

any updates?

Tamás Vidó's profile image Profile Picture

7e7e1c79 e137-46a4-a93c-2ac5a6c5f4c5 on 05 Jul 2020 22:21:55

RE: REST API for managing roles of datasets

Thanks for the feedback. We're discussing this internally and once we have an update we'll circle back. We definitely wanted to start by making sure that we got the feature rock solid and then we'll move into providing other ways of managing/configuring this!

Cheers,
jono