<?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 Embedded Authentication through Azure AD in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Authentication-through-Azure-AD/m-p/320986#M9460</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/48765"&gt;@shanu_123&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you are embedding for non-Power BI users (app owns data), which is typically an ISV scenario, then you should be able to follow &lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded-row-level-security" target="_self"&gt;this&lt;/A&gt; article&amp;nbsp;to implement RLS.&amp;nbsp;You will need to configure the embed token to account for the user and role.&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;SPAN&gt;&amp;nbsp;As well roles are here hardcoded can we make them dynamic in code?&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Based on my understanding, if you could store all the app user info&amp;nbsp;with the corresponding user name, roles, and datasets in your database or somewhere else. Then you should be able to get the required info&amp;nbsp;(by retrieving&amp;nbsp;the database) to generate the TokenRequest for the current app user dynamically.&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.fabric.microsoft.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Mon, 11 Dec 2017 08:26:34 GMT</pubDate>
    <dc:creator>v-ljerr-msft</dc:creator>
    <dc:date>2017-12-11T08:26:34Z</dc:date>
    <item>
      <title>Power BI Embedded Authentication through Azure AD</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Authentication-through-Azure-AD/m-p/319822#M9430</link>
      <description>&lt;P&gt;I have implemeted Power BI Embedded sample "App-Own-Data" available at Power BI-Microsoft Docs, At the time of authenticate only that users are allowed that are added in workspace created in Power BI service, I want that all member Azure AD should able to authenticate and able to see reports based on roles, how can i authencate through azure AD in Power BI Embedded Application? As well roles are here hardcoded can we make them dynamic in code? Below is code for HomeController.cs -&lt;/P&gt;&lt;P&gt;&amp;nbsp;generateTokenRequestParameters = new GenerateTokenRequest("View", null, identities: new List&amp;lt;EffectiveIdentity&amp;gt; { new EffectiveIdentity(username: "username", roles: new List&amp;lt;string&amp;gt; { username == "mohit.gupta@systematixindia.com" ? "Manager" : "Manager1" }, datasets: new List&amp;lt;string&amp;gt; { "bd725bc3-09b4-4c21-84b4-727d84a3f131" }) });&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 06:14:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Authentication-through-Azure-AD/m-p/319822#M9430</guid>
      <dc:creator>shanu_123</dc:creator>
      <dc:date>2017-12-08T06:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded Authentication through Azure AD</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Authentication-through-Azure-AD/m-p/320986#M9460</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/48765"&gt;@shanu_123&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you are embedding for non-Power BI users (app owns data), which is typically an ISV scenario, then you should be able to follow &lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded-row-level-security" target="_self"&gt;this&lt;/A&gt; article&amp;nbsp;to implement RLS.&amp;nbsp;You will need to configure the embed token to account for the user and role.&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;SPAN&gt;&amp;nbsp;As well roles are here hardcoded can we make them dynamic in code?&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Based on my understanding, if you could store all the app user info&amp;nbsp;with the corresponding user name, roles, and datasets in your database or somewhere else. Then you should be able to get the required info&amp;nbsp;(by retrieving&amp;nbsp;the database) to generate the TokenRequest for the current app user dynamically.&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.fabric.microsoft.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 08:26:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Authentication-through-Azure-AD/m-p/320986#M9460</guid>
      <dc:creator>v-ljerr-msft</dc:creator>
      <dc:date>2017-12-11T08:26:34Z</dc:date>
    </item>
  </channel>
</rss>

