<?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 On Premise - Applying Row Level Security in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-On-Premise-Applying-Row-Level-Security/m-p/633626#M9705</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="106502" data-lia-user-login="PowerBI_Develop" class="lia-mention lia-mention-user"&gt;PowerBI_Develop&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for confirming this. I was wondering why my PB reports are not showing the USERNAME() correctly. Is this a bug?&lt;/P&gt;</description>
    <pubDate>Thu, 28 Feb 2019 01:25:38 GMT</pubDate>
    <dc:creator>SuraMan</dc:creator>
    <dc:date>2019-02-28T01:25:38Z</dc:date>
    <item>
      <title>Power BI On Premise - Applying Row Level Security</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-On-Premise-Applying-Row-Level-Security/m-p/624298#M9601</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have recently set up a Power BI On Premise Report Server. From there I created a report in Power BI Desktop and saved it on to the report server, this report is using Direct Query to do a simple select from one of our databases. The report works fine and I can view it both in the report manager and via a URL directly in the browser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm now trying to implement Row Level Security, to do this I'm using Manage Roles and setting up a DAX expression linking USERNAME() to a field in my dataset. This all works perfectly in Desktop, I can View Roles etc. and I am very happy, but now when I try to open the report on the report server or via a URL in the browser I'm just getting the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This visual contains restricted data&lt;/P&gt;&lt;P&gt;To view this visual, contact the dataset owner to request access to the data behind it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From my searching around I honestly can't find much information, but the&amp;nbsp;searching I've done seems to suggest that it isn't possible to do what I want to do (although it is&amp;nbsp;old information so I just want to check that nothing has changed):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also published this report to the Power BI Service, using that the Row Level Security looks good and I can switch users and see the data changed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ideal scenario is to be able to externally access the on premise report server and have security work correctly based on USERNAME() / USERPRINCIPALNAME() (which are both returning FirstName.LastName@domain.com)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matthew&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 12:30:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-On-Premise-Applying-Row-Level-Security/m-p/624298#M9601</guid>
      <dc:creator>MatthewV10</dc:creator>
      <dc:date>2019-02-15T12:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI On Premise - Applying Row Level Security</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-On-Premise-Applying-Row-Level-Security/m-p/624795#M9608</link>
      <description>&lt;P&gt;We shipped RLS support with the January release. But in order to see data you need to add the user to one of the roles in the report (even for the user who is updating the report), follow the steps in the "Add member to Role" section in this link:&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/report-server/row-level-security-report-server" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/power-bi/report-server/row-level-security-report-server&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is not very explicit, but its called our as part of the limitations on that page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you still runs into problems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;-G&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 21:53:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-On-Premise-Applying-Row-Level-Security/m-p/624795#M9608</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-15T21:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI On Premise - Applying Row Level Security</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-On-Premise-Applying-Row-Level-Security/m-p/627582#M9639</link>
      <description>&lt;P&gt;So I have done that, I have a UserName field which I set to FirstName.LastName@domain.com.&amp;nbsp; I then take that UserName field and set up a Role called UserSec where I enter the DAX UserName = USERNAME().&amp;nbsp; I click the tick and this is fine.&amp;nbsp; Following this I uploaded the report to the On Premise Report Server and all of a sudden I cannot see any data, I just get errors saying that the user does not have permission.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I go to the Power BI Service and login in I can set up RLS in the Security tab and then the security works as it should (in the Power BI Service), but I want security to work directly on the On Premise Report Server as using the Power BI Service defeats the point for us.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I need to do is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Create a report in Power BI Desktop&lt;/P&gt;&lt;P&gt;2) Add a Role to that report (using DAX) that links a field to the USERNAME()&lt;/P&gt;&lt;P&gt;3) Save the report from Power BI Desktop to the Power BI On Premise Report Server&lt;/P&gt;&lt;P&gt;4) View the report on the Power BI On Premise Report Server with RLS active&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is that possible?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 15:24:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-On-Premise-Applying-Row-Level-Security/m-p/627582#M9639</guid>
      <dc:creator>MatthewV10</dc:creator>
      <dc:date>2019-02-20T15:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI On Premise - Applying Row Level Security</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-On-Premise-Applying-Row-Level-Security/m-p/633229#M9699</link>
      <description>&lt;P&gt;Just a quick bump, does anyone know anything about this please?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 15:33:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-On-Premise-Applying-Row-Level-Security/m-p/633229#M9699</guid>
      <dc:creator>MatthewV10</dc:creator>
      <dc:date>2019-02-27T15:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI On Premise - Applying Row Level Security</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-On-Premise-Applying-Row-Level-Security/m-p/633269#M9700</link>
      <description>&lt;P&gt;I found out, that Power BI Report Server &lt;SPAN class="ng-binding"&gt;Version&lt;/SPAN&gt; &lt;SPAN class="ng-binding"&gt;1.4.6969.7395&lt;/SPAN&gt; &lt;SPAN class="ng-binding"&gt;(January 2019)&lt;/SPAN&gt;&amp;nbsp;converts the result&amp;nbsp;of&amp;nbsp;DAX function USERNAME() to&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;USERPRINCIPALNAME()&lt;BR /&gt;&lt;BR /&gt;In PowerBI Desktop create a card visual that only shows the a measure called USERN.&lt;BR /&gt;Measure USRN looks like:&lt;BR /&gt;USRN:=username()&lt;BR /&gt;&lt;BR /&gt;Deploy this report to PowerBI Report Server (January 2019) and you will see the result is:&lt;BR /&gt;User@upnsuffix and NOT Domain\username&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Feb 2019 16:22:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-On-Premise-Applying-Row-Level-Security/m-p/633269#M9700</guid>
      <dc:creator>PowerBI_Develop</dc:creator>
      <dc:date>2019-02-27T16:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI On Premise - Applying Row Level Security</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-On-Premise-Applying-Row-Level-Security/m-p/633623#M9704</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="110820" data-lia-user-login="MatthewV10" class="lia-mention lia-mention-user"&gt;MatthewV10&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check that you have done the following step.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After the report is uploaded to PBIRS;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Go to the PBIRS folder that pbix is residing.&lt;BR /&gt;Each pbix is shown in a tiled view with 3 dots on the top right hand corner.&lt;BR /&gt;Click those 3 dots and select "Manage" -&amp;gt; "Row-level security"&lt;BR /&gt;Click "Add Member"&lt;BR /&gt;Here, you have to add AD usernames or AD groups to the security-role you defined in PB Desktop.&lt;/LI&gt;&lt;LI&gt;Instead of adding each user/role, I think "Everyone" group can be added here, so that Row Level Security can appropriately filter rows for each user.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 03:43:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-On-Premise-Applying-Row-Level-Security/m-p/633623#M9704</guid>
      <dc:creator>SuraMan</dc:creator>
      <dc:date>2019-02-28T03:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI On Premise - Applying Row Level Security</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-On-Premise-Applying-Row-Level-Security/m-p/633626#M9705</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="106502" data-lia-user-login="PowerBI_Develop" class="lia-mention lia-mention-user"&gt;PowerBI_Develop&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for confirming this. I was wondering why my PB reports are not showing the USERNAME() correctly. Is this a bug?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 01:25:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-On-Premise-Applying-Row-Level-Security/m-p/633626#M9705</guid>
      <dc:creator>SuraMan</dc:creator>
      <dc:date>2019-02-28T01:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI On Premise - Applying Row Level Security</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-On-Premise-Applying-Row-Level-Security/m-p/634173#M9709</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="33759" data-lia-user-login="SuraMan" class="lia-mention lia-mention-user"&gt;SuraMan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your answer!&amp;nbsp; I'm thrilled it is now working but I'm really annoyed that I had missed that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When viewing the report server from my PC with my main user account I only saw Open in the list, I was surprised at first to not see Manage (as I'm used to using SSRS) but I just figured that everything was controlled in Power BI Desktop.&amp;nbsp; It was only going on the server as another account that I could then follow your advice and find Manage...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As said, thank you very much, done a bit of testing and it looks to be working as expected! :-)&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 11:51:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-On-Premise-Applying-Row-Level-Security/m-p/634173#M9709</guid>
      <dc:creator>MatthewV10</dc:creator>
      <dc:date>2019-02-28T11:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI On Premise - Applying Row Level Security</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-On-Premise-Applying-Row-Level-Security/m-p/635709#M9720</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="106502" data-lia-user-login="PowerBI_Develop" class="lia-mention lia-mention-user"&gt;PowerBI_Develop&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I found out, that Power BI Report Server &lt;SPAN class="ng-binding"&gt;Version&lt;/SPAN&gt; &lt;SPAN class="ng-binding"&gt;1.4.6969.7395&lt;/SPAN&gt; &lt;SPAN class="ng-binding"&gt;(January 2019)&lt;/SPAN&gt;&amp;nbsp;converts the result&amp;nbsp;of&amp;nbsp;DAX function USERNAME() to&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;USERPRINCIPALNAME()&lt;BR /&gt;&lt;BR /&gt;In PowerBI Desktop create a card visual that only shows the a measure called USERN.&lt;BR /&gt;Measure USRN looks like:&lt;BR /&gt;USRN:=username()&lt;BR /&gt;&lt;BR /&gt;Deploy this report to PowerBI Report Server (January 2019) and you will see the result is:&lt;BR /&gt;User@upnsuffix and NOT Domain\username&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Notice the same thing can someone confirm please if this is a bug and if it was raised to Microsoft&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2019 23:05:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-On-Premise-Applying-Row-Level-Security/m-p/635709#M9720</guid>
      <dc:creator>mannou78</dc:creator>
      <dc:date>2019-03-03T23:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI On Premise - Applying Row Level Security</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-On-Premise-Applying-Row-Level-Security/m-p/696119#M10403</link>
      <description>&lt;P&gt;Any update on this?&amp;nbsp; It appears that username() and userprincipalname() are still routing to the same result once published.&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 15:28:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-On-Premise-Applying-Row-Level-Security/m-p/696119#M10403</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-21T15:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI On Premise - Applying Row Level Security</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-On-Premise-Applying-Row-Level-Security/m-p/763251#M11250</link>
      <description>&lt;P&gt;This behavior was a design choice, both username and userprincipalname returns the value of userprincipalname. This is consistent with the experience with reports published to powerbi service.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;-Boreki&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 22:07:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-On-Premise-Applying-Row-Level-Security/m-p/763251#M11250</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-09T22:07:00Z</dc:date>
    </item>
  </channel>
</rss>

