<?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 RLS won't work in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-RLS-won-t-work/m-p/241000#M7536</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am having issues testing out a solution for a client, who needs RLS. I followed GuyInACube's documentation, but when running the sample app (App owns data) all I get is 401 Unauthorized. As you can see, I have intentionally coded the username below to match a specific ID.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;var generateTokenRequestParameters = new GenerateTokenRequest(accessLevel: "View",
                    identities: new List&amp;lt;EffectiveIdentity&amp;gt; { new EffectiveIdentity(username: "411FF129-8FFF-452B-AD1F-9DEDD336EA62", roles: new List&amp;lt;string&amp;gt; { "Test" },
                    datasets: new List&amp;lt;string&amp;gt; { "5e6881e9-e4bb-4eda-868f-2db80699f71c/datasets/744b301e-9140-4b8d-9310-0094c4dcd0ca" }) });&lt;/PRE&gt;
&lt;P&gt;According to error prompt, I get an error on line 84:&lt;/P&gt;
&lt;PRE&gt;var tokenResponse = await client.Reports.GenerateTokenInGroupAsync("groupId", "reportId", generateTokenRequestParameters);&lt;/PRE&gt;
&lt;P&gt;I am currently testing this out without Premium, locally. Does this have anything to do with it - is Premium required to test RLS?&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;@Anonymous&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Please try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;var generateTokenRequestParameters = new GenerateTokenRequest("View", null, identities: new List &amp;lt; EffectiveIdentity &amp;gt; {
                 new EffectiveIdentity(username: "411FF129-8FFF-452B-AD1F-9DEDD336EA62", roles: new List &amp;lt; string &amp;gt; {
                  "Test"
                 }, datasets: new List &amp;lt; string &amp;gt; {
                  "744b301e-9140-4b8d-9310-0094c4dcd0ca"
                 })
                });

var tokenResponse = await client.Reports.GenerateTokenInGroupAsync("5e6881e9-e4bb-4eda-868f-2db80699f71c", "{the actually embedded reportid here}", generateTokenRequestParameters);&lt;/PRE&gt;</description>
    <pubDate>Tue, 29 Aug 2017 06:38:59 GMT</pubDate>
    <dc:creator>Eric_Zhang</dc:creator>
    <dc:date>2017-08-29T06:38:59Z</dc:date>
    <item>
      <title>Power BI Embedded RLS won't work</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-RLS-won-t-work/m-p/240358#M7514</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am having issues testing out a solution for a client, who needs RLS. I followed GuyInACube's documentation, but when running the sample app (App owns data) all I get is 401 Unauthorized. As you can see, I have intentionally coded the username below to match a specific ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var generateTokenRequestParameters = new GenerateTokenRequest(accessLevel: "View",
                    identities: new List&amp;lt;EffectiveIdentity&amp;gt; { new EffectiveIdentity(username: "411FF129-8FFF-452B-AD1F-9DEDD336EA62", roles: new List&amp;lt;string&amp;gt; { "Test" },
                    datasets: new List&amp;lt;string&amp;gt; { "5e6881e9-e4bb-4eda-868f-2db80699f71c/datasets/744b301e-9140-4b8d-9310-0094c4dcd0ca" }) });&lt;/PRE&gt;&lt;P&gt;According to error prompt, I get an error on line 84:&lt;/P&gt;&lt;PRE&gt;var tokenResponse = await client.Reports.GenerateTokenInGroupAsync("groupId", "reportId", generateTokenRequestParameters);&lt;/PRE&gt;&lt;P&gt;I am currently testing this out without Premium, locally. Does this have anything to do with it - is Premium required to test RLS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2017 12:13:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-RLS-won-t-work/m-p/240358#M7514</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-28T12:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded RLS won't work</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-RLS-won-t-work/m-p/241000#M7536</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am having issues testing out a solution for a client, who needs RLS. I followed GuyInACube's documentation, but when running the sample app (App owns data) all I get is 401 Unauthorized. As you can see, I have intentionally coded the username below to match a specific ID.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;var generateTokenRequestParameters = new GenerateTokenRequest(accessLevel: "View",
                    identities: new List&amp;lt;EffectiveIdentity&amp;gt; { new EffectiveIdentity(username: "411FF129-8FFF-452B-AD1F-9DEDD336EA62", roles: new List&amp;lt;string&amp;gt; { "Test" },
                    datasets: new List&amp;lt;string&amp;gt; { "5e6881e9-e4bb-4eda-868f-2db80699f71c/datasets/744b301e-9140-4b8d-9310-0094c4dcd0ca" }) });&lt;/PRE&gt;
&lt;P&gt;According to error prompt, I get an error on line 84:&lt;/P&gt;
&lt;PRE&gt;var tokenResponse = await client.Reports.GenerateTokenInGroupAsync("groupId", "reportId", generateTokenRequestParameters);&lt;/PRE&gt;
&lt;P&gt;I am currently testing this out without Premium, locally. Does this have anything to do with it - is Premium required to test RLS?&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;@Anonymous&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Please try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;var generateTokenRequestParameters = new GenerateTokenRequest("View", null, identities: new List &amp;lt; EffectiveIdentity &amp;gt; {
                 new EffectiveIdentity(username: "411FF129-8FFF-452B-AD1F-9DEDD336EA62", roles: new List &amp;lt; string &amp;gt; {
                  "Test"
                 }, datasets: new List &amp;lt; string &amp;gt; {
                  "744b301e-9140-4b8d-9310-0094c4dcd0ca"
                 })
                });

var tokenResponse = await client.Reports.GenerateTokenInGroupAsync("5e6881e9-e4bb-4eda-868f-2db80699f71c", "{the actually embedded reportid here}", generateTokenRequestParameters);&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Aug 2017 06:38:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-RLS-won-t-work/m-p/241000#M7536</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-08-29T06:38:59Z</dc:date>
    </item>
  </channel>
</rss>

