Forum Discussion
RLS - Give access to all data in one specified table, ignoring RLS rules
- 1 year ago
CatoD , Please find the file attached. You need small modifications to have other values. You can do that by subtracting the values Non All from All
I have done this item. Duplicated Item as Item New( You need to use all columns, I used one for column), then I created relation between RLS -> Item ALL -> Item.
Hide the Item
and used only Item all in visual
CatoD , Please find the file attached. You need small modifications to have other values. You can do that by subtracting the values Non All from All
I have done this item. Duplicated Item as Item New( You need to use all columns, I used one for column), then I created relation between RLS -> Item ALL -> Item.
Hide the Item
and used only Item all in visual
- CatoD1 year agoHelper II
Thank you, your idea solved my issue.
So I did the following:
Since all fact tables in my data model consist of a column 'kpiName', I had to just create a technical dimension 'dRLS_KPI' with 2 columns: idKPI and kpiName.
The dimension should have all KPI names in the data model. Create a one-to-many relation with the fact tables.
Create another technical table ('dRLS_USERPRINCIPALNAME') with 2 columns: idKPI and userprincipalname.
There should be specified IDs of the KPIs the user should have access to and the USERPRINCIPALNAME.
Create a relation with the dimension 'dRLS_KPI'.
Last step is to create a viewing role, which filters 'dRLS_USERPRINCIPALNAME'.
Add the user to the new role.Now the RLS works both ways: the user has access to the whole fact table for specified KPIs in 'dRLS_KPI' as well as for RLS created for the 'department' dimension.