<?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: How to configure UPN mapping/CustomData for Azure Analysis Services and PowerBI Embedded in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-configure-UPN-mapping-CustomData-for-Azure-Analysis/m-p/658323#M18966</link>
    <description>&lt;P&gt;So I finally figured this out, as far as I can tell UPN mapping is enabled by default.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my specific case I ended up using the `CustomData` option as per &lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded-row-level-security#using-the-customdata-feature" target="_self"&gt;the docs&lt;/A&gt;. Initially this wasn't behaving as expected because on my Azure Analysis Services Database I had two row filters, one on the main data table that was comparing the user's email against the &lt;A href="https://dax.guide/userprincipalname/" target="_self"&gt;`USERPRINCIPAL()`&lt;/A&gt; DAX function, then the filter that I added against the user table comparing the user's email against &lt;A href="https://dax.guide/customdata/" target="_self"&gt;`CUSTOMDATA()`&lt;/A&gt; DAX function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get this to work I ended up removing my own filter against the user table and replacing the use of the `USERPRINCIPAL()` function in the initial filter with `CUSTOMDATA()` - I verified this change with our BI guy and he was happy with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this saves someone else the trouble I had.&lt;/P&gt;</description>
    <pubDate>Sun, 31 Mar 2019 22:26:14 GMT</pubDate>
    <dc:creator>MattStannett</dc:creator>
    <dc:date>2019-03-31T22:26:14Z</dc:date>
    <item>
      <title>How to configure UPN mapping/CustomData for Azure Analysis Services and PowerBI Embedded</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-configure-UPN-mapping-CustomData-for-Azure-Analysis/m-p/651472#M18889</link>
      <description>&lt;P&gt;Similar to &lt;A href="https://stackoverflow.com/questions/50468992/rls-in-power-bi-embedded-app-owns-data-with-azure-analysis-service-live-connec" target="_self"&gt;this question&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a .Net Core Web App that embeds a PowerBI report, this report needs has Row Level Security applied at the data level in **Azure Analysis Services** using an on-premises data gateway.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have configured the &lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded-row-level-security#applying-user-and-role-to-an-embed-token" target="_self"&gt;`EffectiveIdentity`&lt;/A&gt;&amp;nbsp;to pass through the UPN using the &lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded-row-level-security#using-the-customdata-feature" target="_self"&gt;`CustomData`&lt;/A&gt;&amp;nbsp;option, I have also setup a role and DAX query on the role to filter the rows.&lt;/P&gt;&lt;P&gt;I have also setup the SQL Server Profiler as per &lt;A href="https://www.kasperonbi.com/using-customdata-and-ssas-with-power-bi-embedded/" target="_self"&gt;this post&lt;/A&gt;&amp;nbsp;and can confirm that the values being set inside `CustomData` are being passed through to Analysis services.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the non-Azure version of Analysis Services, you can configure the data gateway inside the PowerBI web portal to &lt;A href="https://docs.microsoft.com/en-us/power-bi/service-gateway-enterprise-manage-ssas#map-user-names" target="_self"&gt;map usernames&lt;/A&gt;. Since someone else setup the gateway (in Azure), and Azure Analysis Services is not a supported Data Source Type (&lt;A href="https://imgur.com/07nhmC9" target="_self"&gt;not an option in the dropdown&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to know if it is possible to view/change the &lt;A href="https://docs.microsoft.com/en-us/power-bi/media/service-gateway-enterprise-manage-ssas/gateway-enterprise-map-user-names_02.png" target="_self"&gt;Effective User names/CustomData setting&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 31 Mar 2019 22:24:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-configure-UPN-mapping-CustomData-for-Azure-Analysis/m-p/651472#M18889</guid>
      <dc:creator>MattStannett</dc:creator>
      <dc:date>2019-03-31T22:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure UPN mapping/CustomData for Azure Analysis Services and PowerBI Embedded</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-configure-UPN-mapping-CustomData-for-Azure-Analysis/m-p/658323#M18966</link>
      <description>&lt;P&gt;So I finally figured this out, as far as I can tell UPN mapping is enabled by default.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my specific case I ended up using the `CustomData` option as per &lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded-row-level-security#using-the-customdata-feature" target="_self"&gt;the docs&lt;/A&gt;. Initially this wasn't behaving as expected because on my Azure Analysis Services Database I had two row filters, one on the main data table that was comparing the user's email against the &lt;A href="https://dax.guide/userprincipalname/" target="_self"&gt;`USERPRINCIPAL()`&lt;/A&gt; DAX function, then the filter that I added against the user table comparing the user's email against &lt;A href="https://dax.guide/customdata/" target="_self"&gt;`CUSTOMDATA()`&lt;/A&gt; DAX function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get this to work I ended up removing my own filter against the user table and replacing the use of the `USERPRINCIPAL()` function in the initial filter with `CUSTOMDATA()` - I verified this change with our BI guy and he was happy with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this saves someone else the trouble I had.&lt;/P&gt;</description>
      <pubDate>Sun, 31 Mar 2019 22:26:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-configure-UPN-mapping-CustomData-for-Azure-Analysis/m-p/658323#M18966</guid>
      <dc:creator>MattStannett</dc:creator>
      <dc:date>2019-03-31T22:26:14Z</dc:date>
    </item>
  </channel>
</rss>

