This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowThe Fabric community is upgrading! Read all of the details including the timeline and what you can expect. Learn more
I am trying to learn and set up user permissions using dynamic RLS, yet can't seem to to get it working correctly. I've treid following the various samples (and videos) from google searches, but still stuck.
I'm currently working with 5 tables.
1. UsersTable, this contains a the email (UPN) and a 'SiteGroup'.
2. A "SiteGroups" Table. This is just a list of all the groups available.
3. A "SiteLists" Table. This lists all of the SiteTags associated with each group.
4. A "Dim Sites" Table that is a list of all SiteTags available.
5. A data table
Below is the general model showing the relationships.
I have setup a role called Permissions with the DAX of [email] = USERPRINCIPALNAME()
I can create a card and see the correct UPN of myself, and have changed the 'ViewAs" to another email address and see that card change as well.
But the data never filters down to only what the user should be able to see for their "SiteGroup"
I thinking/guessing this has maybe something to do with the data model and relationships?
Solved! Go to Solution.
In a default join (1:*) the filter only flows from the 1 to the many. You would have to make these two relationships bi-directional in order for your user table to filter the data table.
Sweet!!. That did the trick!!
In a default join (1:*) the filter only flows from the 1 to the many. You would have to make these two relationships bi-directional in order for your user table to filter the data table.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
| User | Count |
|---|---|
| 24 | |
| 22 | |
| 20 | |
| 18 | |
| 14 |
| User | Count |
|---|---|
| 27 | |
| 22 | |
| 21 | |
| 20 | |
| 20 |