<?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 Embbed app owns data with RLS in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embbed-app-owns-data-with-RLS/m-p/2111306#M32192</link>
    <description>&lt;P&gt;Hello everyone, I am new to the community.&lt;BR /&gt;I am carrying out a project with powerbi embedded, my first steps of embedding it in a web page were satisfactory. I use the documentation that microsoft has on their website and I get a good result. My scenario is the owns data app, but now it is required to use RLS in a dynamic way, since it is aimed at external clients without a power bi license. I was using the &lt;A href="https://nineboards-my.sharepoint.com/personal/manojn_nineboards_com/_layouts/15/onedrive.aspx?id=%2Fpersonal%2Fmanojn%5Fnineboards%5Fcom%2FDocuments%2FPBI%20Embedded%20%2D%20%2ENET%20Framework%2Ezip&amp;amp;parent=%2Fpersonal%2Fmanojn%5Fnineboards%5Fcom%2FDocuments&amp;amp;originalPath=aHR0cHM6Ly9uaW5lYm9hcmRzLW15LnNoYXJlcG9pbnQuY29tLzp1Oi9wL21hbm9qbi9FZDEwU0tVLW1xeE52OWdLOHVoTnloNEJhbmYzSTg5M1RaSFFhNE9VUlFESHN3P3J0aW1lPURiNmIwZ1NGMlVn" target="_self"&gt;LINK&lt;/A&gt;&amp;nbsp;&amp;nbsp;example file, I get results when I embed an application without RLS but when I use an application with RLS I get the error:&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="JosephBMV_0-1633111468503.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/605041i5D861CB4C9012FBA/image-size/large?v=v2&amp;amp;px=999" role="button" title="JosephBMV_0-1633111468503.png" alt="JosephBMV_0-1633111468503.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm not very good at programming, I understand what the user and dynamic role created should pass through, but I can't identify where.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards Joseph&lt;/P&gt;</description>
    <pubDate>Fri, 01 Oct 2021 18:07:26 GMT</pubDate>
    <dc:creator>JosephBMV</dc:creator>
    <dc:date>2021-10-01T18:07:26Z</dc:date>
    <item>
      <title>Power BI Embbed app owns data with RLS</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embbed-app-owns-data-with-RLS/m-p/2111306#M32192</link>
      <description>&lt;P&gt;Hello everyone, I am new to the community.&lt;BR /&gt;I am carrying out a project with powerbi embedded, my first steps of embedding it in a web page were satisfactory. I use the documentation that microsoft has on their website and I get a good result. My scenario is the owns data app, but now it is required to use RLS in a dynamic way, since it is aimed at external clients without a power bi license. I was using the &lt;A href="https://nineboards-my.sharepoint.com/personal/manojn_nineboards_com/_layouts/15/onedrive.aspx?id=%2Fpersonal%2Fmanojn%5Fnineboards%5Fcom%2FDocuments%2FPBI%20Embedded%20%2D%20%2ENET%20Framework%2Ezip&amp;amp;parent=%2Fpersonal%2Fmanojn%5Fnineboards%5Fcom%2FDocuments&amp;amp;originalPath=aHR0cHM6Ly9uaW5lYm9hcmRzLW15LnNoYXJlcG9pbnQuY29tLzp1Oi9wL21hbm9qbi9FZDEwU0tVLW1xeE52OWdLOHVoTnloNEJhbmYzSTg5M1RaSFFhNE9VUlFESHN3P3J0aW1lPURiNmIwZ1NGMlVn" target="_self"&gt;LINK&lt;/A&gt;&amp;nbsp;&amp;nbsp;example file, I get results when I embed an application without RLS but when I use an application with RLS I get the error:&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="JosephBMV_0-1633111468503.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/605041i5D861CB4C9012FBA/image-size/large?v=v2&amp;amp;px=999" role="button" title="JosephBMV_0-1633111468503.png" alt="JosephBMV_0-1633111468503.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm not very good at programming, I understand what the user and dynamic role created should pass through, but I can't identify where.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards Joseph&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 18:07:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embbed-app-owns-data-with-RLS/m-p/2111306#M32192</guid>
      <dc:creator>JosephBMV</dc:creator>
      <dc:date>2021-10-01T18:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embbed app owns data with RLS</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embbed-app-owns-data-with-RLS/m-p/2113275#M32203</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/329943"&gt;@JosephBMV&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think there may be something wrong in the step you create the embedded token. You can have a test to generate Token with RLS from this link. Please check whether you meet the required scopes. (API permission)&lt;/P&gt;
&lt;P&gt;For reference:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/embed-token/generate-token#generate-embedtoken-for-two-datasets-with-rls-identities-and-a-single-report-with-read-only-permissions.-this-token-allows-to-view-the-report-dynamically-bound-to-two-different-datasets" target="_self"&gt;Generate EmbedToken for two datasets with RLS identities and a single report with read-only permissions&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Here is the offical blog about setting RLS in Embedded Report.&lt;/P&gt;
&lt;P&gt;For reference:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embedded-row-level-security#applying-user-and-role-to-an-embed-token" target="_self"&gt;Applying user and role to an embed token&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can use the following Json code below as an example:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
    "accessLevel": "View",
    "identities": [
        {
            "username": "EffectiveIdentity",
            "roles": [ "Role1", "Role2" ],
            "datasets": [ "fe0a1aeb-f6a4-4b27-a2d3-b5df3bb28bdc" ]
        }
    ]
}&lt;/LI-CODE&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 08:42:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embbed-app-owns-data-with-RLS/m-p/2113275#M32203</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-04T08:42:25Z</dc:date>
    </item>
  </channel>
</rss>

