Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 37 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 25 |