<?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: Need help -  Embedding RLS in GenerateTokenRequestV2Report - BadRequest in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-Embedding-RLS-in-GenerateTokenRequestV2Report/m-p/2926001#M39937</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/476366"&gt;@JamesMinton&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/embedded/embedded-row-level-security" data-linktype="relative-path" target="_blank"&gt;Row Level Security (RLS)&lt;/A&gt;, the identity you use can be different from the identity of the service principal or master user you're using to generating the token. By using different identities, you can display embedded information according to the user you're targeting. For example, in your application you can ask users to sign in, and then display a report that only contains sales information if the signed in user is a sales employee.&lt;/P&gt;
&lt;P&gt;If you're using RLS, you can sometimes leave out the user's identity (the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;EffectiveIdentity&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;parameter). When you don't use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;EffectiveIdentity&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;parameter, the token has access to the entire database. This method can be used to grant access to users such as admins and managers, who have permission to view the entire dataset. However, you can't use this method in every scenario. The table below lists the different RLS types, and shows which authentication method can be used without specifying a user's identity.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/embedded/generate-embed-token#row-level-security" target="_self"&gt;Here is the considerations and limitation applicable to each RLS type.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Besides, you can find some examples here:&amp;nbsp;&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/embed-token/generate-token#examples" target="_self"&gt;Embed Token - Generate Token - Examples| Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more details, please refer to:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/embedded/embedded-row-level-security" target="_blank"&gt;Security in Power BI embedded analytics - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="background: white; margin: 7.5pt 0in 0in 0in;"&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; margin: 7.5pt 0in 0in 0in;"&gt;&lt;SPAN&gt;Jianbo Li&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; margin: 7.5pt 0in 0in 0in;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Nov 2022 05:45:44 GMT</pubDate>
    <dc:creator>v-jianboli-msft</dc:creator>
    <dc:date>2022-11-24T05:45:44Z</dc:date>
    <item>
      <title>Need help -  Embedding RLS in GenerateTokenRequestV2Report - BadRequest</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-Embedding-RLS-in-GenerateTokenRequestV2Report/m-p/2924872#M39921</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First time posting!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm having troubles when trying to add RLS in my Power Bi embedding application.&lt;/P&gt;&lt;P&gt;This is how my application was working before trying to add RLS&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="powerBi1.PNG" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/828527i3951B349E075C7B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="powerBi1.PNG" alt="powerBi1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then tried to do the following&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PowerBi2.PNG" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/828533i4350F839B948032D/image-size/large?v=v2&amp;amp;px=999" role="button" title="PowerBi2.PNG" alt="PowerBi2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;(Side note : the username and roles are just testing, I'm not sure what I'm going to put there yet, I just want to see the token generate again)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code not BadRequest errors on the pbliClient.EmbedToken.GenerateToken(tokenRequest); line&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas of where I'm going wrong? I'm new to PowerBi Embedding&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your time,&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 15:27:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-Embedding-RLS-in-GenerateTokenRequestV2Report/m-p/2924872#M39921</guid>
      <dc:creator>JamesMinton</dc:creator>
      <dc:date>2022-11-23T15:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need help -  Embedding RLS in GenerateTokenRequestV2Report - BadRequest</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-Embedding-RLS-in-GenerateTokenRequestV2Report/m-p/2926001#M39937</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/476366"&gt;@JamesMinton&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/embedded/embedded-row-level-security" data-linktype="relative-path" target="_blank"&gt;Row Level Security (RLS)&lt;/A&gt;, the identity you use can be different from the identity of the service principal or master user you're using to generating the token. By using different identities, you can display embedded information according to the user you're targeting. For example, in your application you can ask users to sign in, and then display a report that only contains sales information if the signed in user is a sales employee.&lt;/P&gt;
&lt;P&gt;If you're using RLS, you can sometimes leave out the user's identity (the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;EffectiveIdentity&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;parameter). When you don't use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;EffectiveIdentity&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;parameter, the token has access to the entire database. This method can be used to grant access to users such as admins and managers, who have permission to view the entire dataset. However, you can't use this method in every scenario. The table below lists the different RLS types, and shows which authentication method can be used without specifying a user's identity.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/embedded/generate-embed-token#row-level-security" target="_self"&gt;Here is the considerations and limitation applicable to each RLS type.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Besides, you can find some examples here:&amp;nbsp;&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/embed-token/generate-token#examples" target="_self"&gt;Embed Token - Generate Token - Examples| Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more details, please refer to:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/embedded/embedded-row-level-security" target="_blank"&gt;Security in Power BI embedded analytics - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="background: white; margin: 7.5pt 0in 0in 0in;"&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; margin: 7.5pt 0in 0in 0in;"&gt;&lt;SPAN&gt;Jianbo Li&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; margin: 7.5pt 0in 0in 0in;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 05:45:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-Embedding-RLS-in-GenerateTokenRequestV2Report/m-p/2926001#M39937</guid>
      <dc:creator>v-jianboli-msft</dc:creator>
      <dc:date>2022-11-24T05:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Need help -  Embedding RLS in GenerateTokenRequestV2Report - BadRequest</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-Embedding-RLS-in-GenerateTokenRequestV2Report/m-p/2929267#M39963</link>
      <description>&lt;P&gt;Thank you for your reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea why I might be getting that&amp;nbsp;&lt;SPAN&gt;BadRequest&amp;nbsp;error though?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 10:08:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-Embedding-RLS-in-GenerateTokenRequestV2Report/m-p/2929267#M39963</guid>
      <dc:creator>JamesMinton</dc:creator>
      <dc:date>2022-11-25T10:08:13Z</dc:date>
    </item>
  </channel>
</rss>

