<?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: Implementing RLS for embedded analytics with an injected client ID in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Implementing-RLS-for-embedded-analytics-with-an-injected-client/m-p/321824#M9489</link>
    <description>&lt;P&gt;Misunderstanding on our side, thanks for the help!&lt;/P&gt;</description>
    <pubDate>Tue, 12 Dec 2017 09:30:44 GMT</pubDate>
    <dc:creator>sramsey</dc:creator>
    <dc:date>2017-12-12T09:30:44Z</dc:date>
    <item>
      <title>Implementing RLS for embedded analytics with an injected client ID</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Implementing-RLS-for-embedded-analytics-with-an-injected-client/m-p/321299#M9474</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We're trying to embed power BI into our core web app using azure, and had a previous incarnation in place using the old workspace collections (for demo purposes). We've now come back to this project with intentions to get it into production after developing a range of dashboards to find that way of embedding has been deprecated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We've managed to get our reports exposed through the app using the azure Power BI Embedded resource, but we're now having issues with RLS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Previously we had set a role to be [Client ID] = USERNAME(), and then set the username to be the&amp;nbsp;ID of the client whose context the user is in. Now we're unable to do this because username is actually used in order to authenticate (so cannot be replaced by the client ID).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to refine the dataset (securely) to a specific identity?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 15:51:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Implementing-RLS-for-embedded-analytics-with-an-injected-client/m-p/321299#M9474</guid>
      <dc:creator>sramsey</dc:creator>
      <dc:date>2017-12-11T15:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing RLS for embedded analytics with an injected client ID</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Implementing-RLS-for-embedded-analytics-with-an-injected-client/m-p/321687#M9484</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/49306"&gt;@sramsey&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We're trying to embed power BI into our core web app using azure, and had a previous incarnation in place using the old workspace collections (for demo purposes). We've now come back to this project with intentions to get it into production after developing a range of dashboards to find that way of embedding has been deprecated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We've managed to get our reports exposed through the app using the azure Power BI Embedded resource, but we're now having issues with RLS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Previously we had set a role to be [Client ID] = USERNAME(), and then set the username to be the&amp;nbsp;ID of the client whose context the user is in.&lt;STRONG&gt; Now we're unable to do this because username is actually used in order to authenticate (so cannot be replaced by the client ID).&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way to refine the dataset (securely) to a specific identity?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/49306"&gt;@sramsey&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;I don't know where you get the idea the username is for authentication, in the case&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedding#embedding-for-your-customers" target="_self"&gt;Embedding for your customers&lt;/A&gt;, you still assign username and role when generating the embedded token. See&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded-row-level-security" target="_self"&gt;Use row-level security with Power BI embedded content&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;The correlated REST API is &lt;A href="https://msdn.microsoft.com/en-us/library/mt784614.aspx" target="_self"&gt;GenerateToken&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 06:56:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Implementing-RLS-for-embedded-analytics-with-an-injected-client/m-p/321687#M9484</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-12-12T06:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing RLS for embedded analytics with an injected client ID</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Implementing-RLS-for-embedded-analytics-with-an-injected-client/m-p/321824#M9489</link>
      <description>&lt;P&gt;Misunderstanding on our side, thanks for the help!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 09:30:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Implementing-RLS-for-embedded-analytics-with-an-injected-client/m-p/321824#M9489</guid>
      <dc:creator>sramsey</dc:creator>
      <dc:date>2017-12-12T09:30:44Z</dc:date>
    </item>
  </channel>
</rss>

