<?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: RLS based on User Table in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/RLS-based-on-User-Table/m-p/2942755#M40083</link>
    <description>&lt;P&gt;It's resolved! The issue was the DAX function: is not USERNAME(); is USERPRINCIPALNAME().&lt;/P&gt;</description>
    <pubDate>Thu, 01 Dec 2022 19:45:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-12-01T19:45:23Z</dc:date>
    <item>
      <title>RLS based on User Table</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/RLS-based-on-User-Table/m-p/2936705#M40035</link>
      <description>&lt;P&gt;Hello everyone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to add RLS to a PBI file by using one of the source tables as the user list. I have the following tables:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I would like to use the User table to restrict or provide access to the users to some specific countries, meaning that if a user has, let's say, Country Permission = "Germany, United States, Italy", they can ONLY see the information related to those countries.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me set this up? (Hope the info above is enough. If not, I can provide some more)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate your help.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 19:40:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/RLS-based-on-User-Table/m-p/2936705#M40035</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-29T19:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: RLS based on User Table</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/RLS-based-on-User-Table/m-p/2937285#M40038</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my example:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;PS: For more details please refer to the attachments&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try:&lt;/P&gt;
&lt;P&gt;First duplicate the user table and then split column:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then create relationship:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then apply the RLS:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Final output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="background: white; margin: 7.5pt 0in 0in 0in;"&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; margin: 7.5pt 0in 0in 0in;"&gt;&lt;SPAN&gt;Jianbo Li&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; margin: 7.5pt 0in 0in 0in;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 02:28:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/RLS-based-on-User-Table/m-p/2937285#M40038</guid>
      <dc:creator>v-jianboli-msft</dc:creator>
      <dc:date>2022-11-30T02:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: RLS based on User Table</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/RLS-based-on-User-Table/m-p/2939333#M40047</link>
      <description>&lt;P&gt;Hello Jiambo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I tried adding some more data to the tables and replacing the usernames for real ones to test the solution, but unfortunately it didn't work... I don't know if I'm doing something wrong, but this is what I see:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Now, I changed the RLS filter to the "User (2)" table, assuming that was the issue, but still no good result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Any thoughts on this?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 15:10:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/RLS-based-on-User-Table/m-p/2939333#M40047</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-30T15:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: RLS based on User Table</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/RLS-based-on-User-Table/m-p/2940458#M40067</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does RLS work for table User (2)? Please make sure the [Username] column is in format. What are the relationships between your tables? Are they Single or Both? If they are Both, make sure "Apply security filter in both directions" is selected.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If these could not work, please provide me with more details about your table and your problem or share me with your pbix file after&amp;nbsp;&lt;STRONG&gt;removing sensitive data.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Refer to:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-provide-sample-data-in-the-Power-BI-Forum%2Fba-p%2F963216&amp;amp;data=05%7C01%7Cv-jianboli%40microsoft.com%7Ca7ce12be0f454896a61208da8034281b%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637963258750159993%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=orVyE0%2FImc2MEFUqXtCveK0uf33594f67ZDxb8ybuNI%3D&amp;amp;reserved=0" target="_blank"&gt;How to provide sample data in the Power BI Forum&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-Get-Your-Question-Answered-Quickly%2Fba-p%2F38490&amp;amp;data=05%7C01%7Cv-jianboli%40microsoft.com%7Ca7ce12be0f454896a61208da8034281b%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637963258750159993%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=XocTq9o6TjxbxJqTak20E3kKp7q5HxKTNZef7xESMV0%3D&amp;amp;reserved=0" target="_blank"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jianbo Li&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 01:28:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/RLS-based-on-User-Table/m-p/2940458#M40067</guid>
      <dc:creator>v-jianboli-msft</dc:creator>
      <dc:date>2022-12-01T01:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: RLS based on User Table</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/RLS-based-on-User-Table/m-p/2942112#M40079</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="47661" data-lia-user-login="huojiami" class="lia-mention lia-mention-user"&gt;huojiami&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately none of the above worked. I used both user tables (in different samples) as the filter table for RLS but neither attempt worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I couldn't attach a copy of the file, so I'm sending you prints of the tables, contents, and relationships. I appreciate your help.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 14:34:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/RLS-based-on-User-Table/m-p/2942112#M40079</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-01T14:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: RLS based on User Table</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/RLS-based-on-User-Table/m-p/2942755#M40083</link>
      <description>&lt;P&gt;It's resolved! The issue was the DAX function: is not USERNAME(); is USERPRINCIPALNAME().&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 19:45:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/RLS-based-on-User-Table/m-p/2942755#M40083</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-01T19:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: RLS based on User Table</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/RLS-based-on-User-Table/m-p/3011786#M40654</link>
      <description>&lt;P&gt;It would be really nice if there was one location to manage all of this across all reports...&lt;/P&gt;&lt;P&gt;&lt;A href="https://ideas.powerbi.com/ideas/idea/?ideaid=e413d9e7-f785-ed11-a76e-281878bd14b2" target="_blank"&gt;https://ideas.powerbi.com/ideas/idea/?ideaid=e413d9e7-f785-ed11-a76e-281878bd14b2&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 16:40:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/RLS-based-on-User-Table/m-p/3011786#M40654</guid>
      <dc:creator>Josh_Boj</dc:creator>
      <dc:date>2023-01-10T16:40:36Z</dc:date>
    </item>
  </channel>
</rss>

