Forum Discussion
RLS Security with External Customers (Dynamic) with also conglomerated data?
- 8 months ago
Hello BugmanJ ,
you can create a RLS table like customerid, companyname, domain.
and you can create relationship to table like Customers. after that anyone signing in with abc.com only sees rows where Customers[Domain]=abc.com
For second question, RLS blocks all non matching rows so average(deliverytime) will only show the current customer's average. To show all customers average time, you should use all(customers) in your calculate.
- 8 months ago
BugmanJ , Couple of ways.
1. Create a table that has all the needed dimensions, like date, etc., but no customer-related columns, and do not join with the customer dimension joining with RLS . This will dynamically act to all or all selected in your measure as per need
2. Have a static column in the fact Average(Table[Time]) , this will static avg after every load
Morning,
amitchandak anilelmastasi Idrissshatila thank you for your responses. Iwill need to almagalmate from them all. RLS occurs before anything so there is no "ALL" capability, thus I will need to use amitchandaks idea of a seperate table sans customer data. I Will also need to use anilelmastasi/ Idrissshatila idea of having a customer table with a domain filter, although admiterley at present, thats causing me a little grief but I will get there.