<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Power BI Dynamic RLS Role in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Dynamic-RLS-Role/m-p/3120159#M41635</link>
    <description>&lt;P&gt;We have been using CustomData() since the beginning of time in Analysis services,&amp;nbsp; and over a year ago,&amp;nbsp; MSFT added that capability for RLS in Power BI.&amp;nbsp; &amp;nbsp;This is another way of doing it.&amp;nbsp; &amp;nbsp;The DAX filtering is very flexible, though and you can pretty much target any fields.&amp;nbsp; &amp;nbsp;The most important thing with RLS is to get your modeling correct so all dimension filters work correctly with measures,&amp;nbsp; etc.&amp;nbsp; &amp;nbsp; &amp;nbsp; See below for info on that feature -&lt;/P&gt;&lt;P&gt;&lt;A href="https://powerbi.microsoft.com/en-us/blog/the-customdata-feature-is-now-generally-available-in-power-bi/#:~:text=The%20capability%20to%20pass%20custom%20data%20for%20row,level%20security%20in%20embedded%20reports%2C%20dashboards%2C%20and%20tiles." target="_blank" rel="noopener"&gt;The CustomData feature is now generally available in Power BI! | Microsoft Power BI Blog | Microsoft Power BI&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Mar 2023 00:54:47 GMT</pubDate>
    <dc:creator>luisrh</dc:creator>
    <dc:date>2023-03-09T00:54:47Z</dc:date>
    <item>
      <title>Power BI Dynamic RLS Role</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Dynamic-RLS-Role/m-p/3118507#M41618</link>
      <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to set up a dynamic RLS role so that users who belong to the role can only see the data based on the email address that they used to log in. I need to map the email addresses to a "tenant_id", which will be the main filter that is used to filter all other tables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My idea is to set up an additional table called "power_bi_users" with two columns, 'user_email' and 'tenant_id', then use dynamic RLS to specify that power_bi_users.user_email must equal username(). That row filter will then be passed through through to the tenant table via the tenant_id, which passes the tenant_id through to all other tables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is whether or not this is the best approach? Or is there a way to use another function instead of username() which calls a custom "tenant_id" field instead of returning an email address?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Seb&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 10:36:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Dynamic-RLS-Role/m-p/3118507#M41618</guid>
      <dc:creator>SebRosolen</dc:creator>
      <dc:date>2023-03-08T10:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Dynamic RLS Role</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Dynamic-RLS-Role/m-p/3120159#M41635</link>
      <description>&lt;P&gt;We have been using CustomData() since the beginning of time in Analysis services,&amp;nbsp; and over a year ago,&amp;nbsp; MSFT added that capability for RLS in Power BI.&amp;nbsp; &amp;nbsp;This is another way of doing it.&amp;nbsp; &amp;nbsp;The DAX filtering is very flexible, though and you can pretty much target any fields.&amp;nbsp; &amp;nbsp;The most important thing with RLS is to get your modeling correct so all dimension filters work correctly with measures,&amp;nbsp; etc.&amp;nbsp; &amp;nbsp; &amp;nbsp; See below for info on that feature -&lt;/P&gt;&lt;P&gt;&lt;A href="https://powerbi.microsoft.com/en-us/blog/the-customdata-feature-is-now-generally-available-in-power-bi/#:~:text=The%20capability%20to%20pass%20custom%20data%20for%20row,level%20security%20in%20embedded%20reports%2C%20dashboards%2C%20and%20tiles." target="_blank" rel="noopener"&gt;The CustomData feature is now generally available in Power BI! | Microsoft Power BI Blog | Microsoft Power BI&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 00:54:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Dynamic-RLS-Role/m-p/3120159#M41635</guid>
      <dc:creator>luisrh</dc:creator>
      <dc:date>2023-03-09T00:54:47Z</dc:date>
    </item>
  </channel>
</rss>

