cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Karthiknfr Regular Visitor
Regular Visitor

Control Row Level Security Using Excel spreadsheet

Hello,

 

I have created a PBI Report. Now I am exploring options to do RLS. Normal method does work and i have asked users to test. Now moving forward we want to control the RLS using Excel sheet. Now our RLS is based off on geography or country specific. So we have created different roles for countries and we go add users manually in Service. But we want to do this dynamically like the excel should dictate that. If a person name X belongs to US today and excel reflects the same, he should view only US data (At present we need to add his email manually in service). Tomorrow if X moves to Canada we want to update that spreadsheet and the user should view only cannada data. 

 

I have read some blogs about dynamic RLS. But what i am looking for is controlling RLS using excel sheet. Let me know if this is possible. If possible how?

 

Thanks,
Karthik

3 REPLIES 3
Karthiknfr Regular Visitor
Regular Visitor

Re: Control Row Level Security Using Excel spreadsheet

Does anyone know how to control RLS with Excel?

Community Support Team
Community Support Team

Re: Control Row Level Security Using Excel spreadsheet

hi, @Karthiknfr 

You may refer to this blog:

https://radacad.com/dynamic-row-level-security-in-power-bi-with-organizational-hierarchy-and-multipl...

For your case, you could define the role dim table in excel and then import it into power bi report and set refresh for it.

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Karthiknfr Regular Visitor
Regular Visitor

Re: Control Row Level Security Using Excel spreadsheet

Hello,

 

I created a excel which will control the RLS with Person name, Email and GEO and Product. That table is called as User_Access in the diagram. Now when i import the model I created a relationship between User_Access and Geo_Hierarchy tables connecting Geo. DRLS.png

Next step i went to manage roles and created a role called accessa and declared [User] = USERPRINCIPALNAME(). 

Next i published the same to Service and shared the report with a user. When user viewed the report he is getting below error

User Error.PNG

Can someone tell me where I am going wrong. I checked many forums but nothing helped. If someone can shed some light on where I am going wrong will be helpful.

 

Note: I did not go to dataset for the report and make any changes. Not sure if that is a step I am missing.

Helpful resources

Announcements
New Kudos Received Badges Coming

New Kudos Received Badges Coming

Kudos to you if you earned one of these! Check your inbox for a notification.

Microsoft Implementation for Communities Wins Award

Microsoft Implementation for Communities Wins Award

Learn about the award-winning innovation that was implemented across Microsoft’s Business Applications Communities.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Kudoed Authors (Last 30 Days)
Users online (2,846)