<?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 Report Server : UserPrincipalName() or UserName() not useful when using Forms Auth in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-UserPrincipalName-or-UserName-not-useful/m-p/499764#M7455</link>
    <description>&lt;P&gt;Hello, did you find any solution to filter user data when using form auth in Power BI Report Server?&lt;/P&gt;</description>
    <pubDate>Mon, 27 Aug 2018 06:46:41 GMT</pubDate>
    <dc:creator>oliviernicollet</dc:creator>
    <dc:date>2018-08-27T06:46:41Z</dc:date>
    <item>
      <title>Power BI Report Server : UserPrincipalName() or UserName() not useful when using Forms Auth</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-UserPrincipalName-or-UserName-not-useful/m-p/357520#M3921</link>
      <description>&lt;P&gt;I successfully managed to test Power BI Report Server using Forms Autentication based on this security sample :&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Microsoft/Reporting-Services/tree/master/CustomSecuritySample" target="_blank"&gt;https://github.com/Microsoft/Reporting-Services/tree/master/CustomSecuritySample&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to create a user and set it as administrator.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, in my Power BI analysis, I would like to&amp;nbsp;retrieve the name of the current form user using either UserPrincipalName() or UserName() DAX function. Problem is that :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- UserPrincipalName() returns &amp;lt;servername&amp;gt;$@domain.com&lt;/P&gt;&lt;P&gt;- UserName() return NT SERVICE\PowerBIReportServer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whereas, when using Windows Authentication, it returns respectively email and windows login ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is is a bug? Any other way to get the logged in user name?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Frederick&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 20:35:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-UserPrincipalName-or-UserName-not-useful/m-p/357520#M3921</guid>
      <dc:creator>samsonfr</dc:creator>
      <dc:date>2018-02-13T20:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server : UserPrincipalName() or UserName() not useful when using Forms Auth</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-UserPrincipalName-or-UserName-not-useful/m-p/363562#M4086</link>
      <description>&lt;P&gt;I got a response from Microsoft support :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"The issue we are seeing is considered a &amp;nbsp;by Design behavior. As PBI connects to Azure Analysis Services (AAS) internally and AAS takes only Windows Credentials. When Forms Authentication is used, it uses the Credentials of PBI RS (which is Service account) as Windows username is not available."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So Forms Authentication for PBI Report Server should only be used to define autorizations on folders and files. As there is no way of getting the form user name from within Power BI (using DAX for example), it cannot be used to filter data automatically by on the user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Frederick&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 19:58:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-UserPrincipalName-or-UserName-not-useful/m-p/363562#M4086</guid>
      <dc:creator>samsonfr</dc:creator>
      <dc:date>2018-02-22T19:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Report Server : UserPrincipalName() or UserName() not useful when using Forms Auth</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-UserPrincipalName-or-UserName-not-useful/m-p/499764#M7455</link>
      <description>&lt;P&gt;Hello, did you find any solution to filter user data when using form auth in Power BI Report Server?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2018 06:46:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-BI-Report-Server-UserPrincipalName-or-UserName-not-useful/m-p/499764#M7455</guid>
      <dc:creator>oliviernicollet</dc:creator>
      <dc:date>2018-08-27T06:46:41Z</dc:date>
    </item>
  </channel>
</rss>

