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?
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.
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
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.