<?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: RLS doesn't work with identities from embed token (don't filter the report data) in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/RLS-doesn-t-work-with-identities-from-embed-token-don-t-filter/m-p/442174#M13639</link>
    <description>&lt;P&gt;Solved!&lt;BR /&gt;The issue was tha bad key in post json: "identitites" instead of "identities".&lt;BR /&gt;That bug was difficult to be discovered as&amp;nbsp;the request gave back the correct response with the report token. But in the request body was taken only accessLevel and identities part has been ignored.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jun 2018 14:02:17 GMT</pubDate>
    <dc:creator>jarek_blaszczyk</dc:creator>
    <dc:date>2018-06-18T14:02:17Z</dc:date>
    <item>
      <title>RLS doesn't work with identities from embed token (don't filter the report data)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/RLS-doesn-t-work-with-identities-from-embed-token-don-t-filter/m-p/439965#M13568</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I use Power BI Embedded for display the report in the web application.&lt;BR /&gt;I receive correct embed token passing in the request body identities, like (values are just examples)&lt;BR /&gt;{&lt;BR /&gt;"accessLevel": "view",&lt;BR /&gt;"identities": [{&lt;BR /&gt;"username": "my_user@my_company",&lt;BR /&gt;"roles": ["my_role"],&lt;BR /&gt;"datasets": ["aaaaaaaa-0000-cccc-eeee-77777777777"]&lt;BR /&gt;}]&lt;BR /&gt;}&lt;BR /&gt;The problem is that RLS filtering is not working. The report is diplayed, but contains all data connected to the master account, no to "my_user@my_company" and "my_role".&lt;/P&gt;&lt;P&gt;The client on Power BI desktop uses the same username and role and the data is filtered. Which is the problem?&lt;BR /&gt;May I decode in some way the token or analize / verify it?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 14:56:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/RLS-doesn-t-work-with-identities-from-embed-token-don-t-filter/m-p/439965#M13568</guid>
      <dc:creator>jarek_blaszczyk</dc:creator>
      <dc:date>2018-06-14T14:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: RLS doesn't work with identities from embed token (don't filter the report data)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/RLS-doesn-t-work-with-identities-from-embed-token-don-t-filter/m-p/440792#M13587</link>
      <description>&lt;P&gt;did you add this role also on the PBI report side?&lt;BR /&gt;you need to create some custom role called for&amp;nbsp;example my_role with parameters&lt;BR /&gt;&lt;BR /&gt;[column from your table with email] = username ()&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 10:29:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/RLS-doesn-t-work-with-identities-from-embed-token-don-t-filter/m-p/440792#M13587</guid>
      <dc:creator>TriPax</dc:creator>
      <dc:date>2018-06-15T10:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: RLS doesn't work with identities from embed token (don't filter the report data)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/RLS-doesn-t-work-with-identities-from-embed-token-don-t-filter/m-p/440907#M13589</link>
      <description>&lt;P&gt;yes, we did it&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 13:13:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/RLS-doesn-t-work-with-identities-from-embed-token-don-t-filter/m-p/440907#M13589</guid>
      <dc:creator>jarek_blaszczyk</dc:creator>
      <dc:date>2018-06-15T13:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: RLS doesn't work with identities from embed token (don't filter the report data)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/RLS-doesn-t-work-with-identities-from-embed-token-don-t-filter/m-p/440939#M13590</link>
      <description>&lt;P&gt;I'm using it at my app so it's look like that on the raport side&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-06-14_12-16-08.png" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/101489iD69E95ED505A49A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-06-14_12-16-08.png" alt="2018-06-14_12-16-08.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then in the code I'm using&amp;nbsp;&lt;/P&gt;&lt;P&gt;accessLevel: "view", identities: new List&amp;lt;EffectiveIdentity&amp;gt; { new EffectiveIdentity(username: "exampleuser@company.com, roles: new List&amp;lt;string&amp;gt; {&amp;nbsp;DynamicUser }, datasets: new List&amp;lt;string&amp;gt; {&amp;nbsp;somedatasetid }) }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I'm using .net app so it should be sth like this if we use hardcoded values&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"accessLevel": "View", "identities": [ { "username": "exampleuser@company.com", "roles": [ "DynamicUser" ], "datasets": [ "somedatasetid" ] } ]&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 13:48:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/RLS-doesn-t-work-with-identities-from-embed-token-don-t-filter/m-p/440939#M13590</guid>
      <dc:creator>TriPax</dc:creator>
      <dc:date>2018-06-15T13:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: RLS doesn't work with identities from embed token (don't filter the report data)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/RLS-doesn-t-work-with-identities-from-embed-token-don-t-filter/m-p/440945#M13591</link>
      <description>&lt;P&gt;thx, I do it exactly as you wrote (using Spring REST API)&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 13:56:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/RLS-doesn-t-work-with-identities-from-embed-token-don-t-filter/m-p/440945#M13591</guid>
      <dc:creator>jarek_blaszczyk</dc:creator>
      <dc:date>2018-06-15T13:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: RLS doesn't work with identities from embed token (don't filter the report data)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/RLS-doesn-t-work-with-identities-from-embed-token-don-t-filter/m-p/440947#M13592</link>
      <description>&lt;P&gt;it is working ok now?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 13:57:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/RLS-doesn-t-work-with-identities-from-embed-token-don-t-filter/m-p/440947#M13592</guid>
      <dc:creator>TriPax</dc:creator>
      <dc:date>2018-06-15T13:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: RLS doesn't work with identities from embed token (don't filter the report data)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/RLS-doesn-t-work-with-identities-from-embed-token-don-t-filter/m-p/440949#M13593</link>
      <description>&lt;P&gt;no&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 13:59:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/RLS-doesn-t-work-with-identities-from-embed-token-don-t-filter/m-p/440949#M13593</guid>
      <dc:creator>jarek_blaszczyk</dc:creator>
      <dc:date>2018-06-15T13:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: RLS doesn't work with identities from embed token (don't filter the report data)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/RLS-doesn-t-work-with-identities-from-embed-token-don-t-filter/m-p/440952#M13594</link>
      <description>&lt;P&gt;try to see this report as this sended user - open place when you have Roles button and on the right side we can also try to see report as an different user - if you add this username there report should be filtered&lt;BR /&gt;&lt;BR /&gt;if it's not then format for username is different&lt;BR /&gt;&lt;BR /&gt;if it's ok then we need to go deeper and see what you try to shoot to the server - you can for example download Embed-API-Sample-master application and modify it to use with your filters - then token what is generated can be used with js what show report at the webpage&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 14:08:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/RLS-doesn-t-work-with-identities-from-embed-token-don-t-filter/m-p/440952#M13594</guid>
      <dc:creator>TriPax</dc:creator>
      <dc:date>2018-06-15T14:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: RLS doesn't work with identities from embed token (don't filter the report data)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/RLS-doesn-t-work-with-identities-from-embed-token-don-t-filter/m-p/440994#M13595</link>
      <description>&lt;P&gt;I think I know where is the problem. In some way there is built bad request using spring RestTemplate. Probably are some issues with formatting the json from object.&lt;BR /&gt;When I ues json generated in the postman, working correctly.&lt;BR /&gt;I will continue the work on Monday. Anyway thanks a lot for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 15:06:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/RLS-doesn-t-work-with-identities-from-embed-token-don-t-filter/m-p/440994#M13595</guid>
      <dc:creator>jarek_blaszczyk</dc:creator>
      <dc:date>2018-06-15T15:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: RLS doesn't work with identities from embed token (don't filter the report data)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/RLS-doesn-t-work-with-identities-from-embed-token-don-t-filter/m-p/442174#M13639</link>
      <description>&lt;P&gt;Solved!&lt;BR /&gt;The issue was tha bad key in post json: "identitites" instead of "identities".&lt;BR /&gt;That bug was difficult to be discovered as&amp;nbsp;the request gave back the correct response with the report token. But in the request body was taken only accessLevel and identities part has been ignored.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 14:02:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/RLS-doesn-t-work-with-identities-from-embed-token-don-t-filter/m-p/442174#M13639</guid>
      <dc:creator>jarek_blaszczyk</dc:creator>
      <dc:date>2018-06-18T14:02:17Z</dc:date>
    </item>
  </channel>
</rss>

