<?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 Power BI Embedded RLS - How do I get it to work? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-RLS-How-do-I-get-it-to-work/m-p/240359#M7515</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;Changing the line to this&lt;/P&gt;&lt;PRE&gt;var tokenResponse = await client.Reports.GenerateTokenInGroupAsync(GroupId, report.Id, generateTokenRequestParameters);&lt;/PRE&gt;&lt;P&gt;Gives me error prompt "Bad Request".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&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:53:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-08-28T12:53:49Z</dc:date>
    <item>
      <title>Power BI Embedded RLS - How do I get it to work?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-RLS-How-do-I-get-it-to-work/m-p/240359#M7515</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;Changing the line to this&lt;/P&gt;&lt;PRE&gt;var tokenResponse = await client.Reports.GenerateTokenInGroupAsync(GroupId, report.Id, generateTokenRequestParameters);&lt;/PRE&gt;&lt;P&gt;Gives me error prompt "Bad Request".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&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:53:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-RLS-How-do-I-get-it-to-work/m-p/240359#M7515</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-28T12:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded RLS - How do I get it to work?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-RLS-How-do-I-get-it-to-work/m-p/240424#M7516</link>
      <description>&lt;P&gt;You are using this datasetId:&lt;/P&gt;&lt;PRE&gt;"5e6881e9-e4bb-4eda-868f-2db80699f71c/datasets/744b301e-9140-4b8d-9310-0094c4dcd0ca"&lt;/PRE&gt;&lt;P&gt;Try using just:&lt;/P&gt;&lt;PRE&gt;"744b301e-9140-4b8d-9310-0094c4dcd0ca"&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Aug 2017 13:57:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-RLS-How-do-I-get-it-to-work/m-p/240424#M7516</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-28T13:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded RLS - How do I get it to work?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-RLS-How-do-I-get-it-to-work/m-p/240994#M7535</link>
      <description>&lt;P&gt;Thanks, I didn't see that one! How typical &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 06:29:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-RLS-How-do-I-get-it-to-work/m-p/240994#M7535</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-29T06:29:32Z</dc:date>
    </item>
  </channel>
</rss>

