<?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: Row Level Security in Power BI Embedded in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Row-Level-Security-in-Power-BI-Embedded/m-p/2136984#M32388</link>
    <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;I found a GitHub sample about C# to use power bi embed with RLS. Pherpa you can take a look at the following link if it helps with your senior:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://github.com/PowerBiDevCamp/AppOwnsDataWithRLS" target="_self"&gt;AppOwnsDataWithRLS&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Oct 2021 09:03:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-10-15T09:03:17Z</dc:date>
    <item>
      <title>Row Level Security in Power BI Embedded</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Row-Level-Security-in-Power-BI-Embedded/m-p/2131683#M32353</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am a new user of Power BI and I am currently looking into the implementation of Row Level Security (RLS) in Power BI Embedded that is being used by my organisation. I have programmed a few lines at the backend side however there are a few queries I have and need further explanation. I went over the documentation but I felt that it has not been updated as majority of their code deals with methods for Version 2 (V2) of Power BI meanwhile we are using Version 3.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have programmed the following line of code as our backend is mainly programmed in C#:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;var &lt;/SPAN&gt;&lt;SPAN&gt;generateTokenRequestParameters = &lt;/SPAN&gt;&lt;SPAN&gt;new &lt;/SPAN&gt;&lt;SPAN&gt;GenerateTokenRequest&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;accessLevel: &lt;/SPAN&gt;&lt;SPAN&gt;canEdit &lt;/SPAN&gt;? &lt;SPAN&gt;"edit" &lt;/SPAN&gt;: &lt;SPAN&gt;"view"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;null&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    identities&lt;/SPAN&gt;: &lt;SPAN&gt;new &lt;/SPAN&gt;&lt;SPAN&gt;List&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;EffectiveIdentity&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt; { &lt;/SPAN&gt;&lt;SPAN&gt;new &lt;/SPAN&gt;&lt;SPAN&gt;EffectiveIdentity&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;username: &lt;/SPAN&gt;&lt;SPAN&gt;"username"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;        roles&lt;/SPAN&gt;: &lt;SPAN&gt;new &lt;/SPAN&gt;&lt;SPAN&gt;List&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;string&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt; { &lt;/SPAN&gt;&lt;SPAN&gt;"roleA"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"roleB" &lt;/SPAN&gt;&lt;SPAN&gt;}, datasets&lt;/SPAN&gt;: &lt;SPAN&gt;new &lt;/SPAN&gt;&lt;SPAN&gt;List&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;string&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt; { &lt;/SPAN&gt;&lt;SPAN&gt;"datasetId" &lt;/SPAN&gt;&lt;SPAN&gt;}) });&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;However, what I am not able to fully grasp is the bigger picture. Both static and dynamic RLS is very easy to implement in Power BI Desktop but I am not able to connect the dots for the implementation of RLS in Embed Power BI. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I am unsure with regards to what next steps should I take. I have gone over the documentation&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embedded-row-level-security" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/power-bi/developer/embedded/embedded-row-level-security&lt;/A&gt;&amp;nbsp;however I felt it was not very easy to follow and not up to date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; What I am not fully grasping is the concept of username, roles and datasets. With the code I have implemented, how do I determine what fields to fill in for the username, roles and dataset parameters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Let's say if I were to implement this code, would it be scalable. Currently we are making a POC for one of the clients and we want to implement this in the long term.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help and advise would be wonderful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 08:32:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Row-Level-Security-in-Power-BI-Embedded/m-p/2131683#M32353</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-13T08:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Row Level Security in Power BI Embedded</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Row-Level-Security-in-Power-BI-Embedded/m-p/2136984#M32388</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;I found a GitHub sample about C# to use power bi embed with RLS. Pherpa you can take a look at the following link if it helps with your senior:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://github.com/PowerBiDevCamp/AppOwnsDataWithRLS" target="_self"&gt;AppOwnsDataWithRLS&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 09:03:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Row-Level-Security-in-Power-BI-Embedded/m-p/2136984#M32388</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-15T09:03:17Z</dc:date>
    </item>
  </channel>
</rss>

