<?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 Embed authenticate Process with service principal in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Embed-authenticate-Process-with-service-principal/m-p/3988650#M35296</link>
    <description>&lt;P&gt;Hi, I want to embed a report in my Azure web app where users can log in with their ID and see only their own data.&lt;/P&gt;&lt;P&gt;Can you tell me what logic I can apply to get specific user data in my embedded report?&lt;/P&gt;&lt;P&gt;If I use the service principal method and apply Row-Level Security (RLS), how does Power BI know who the user is logging into my web app, and what parameter do I pass in the RLS report?&lt;BR /&gt;Do I filter data using GUID?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jun 2024 12:52:52 GMT</pubDate>
    <dc:creator>wasiqkhan</dc:creator>
    <dc:date>2024-06-12T12:52:52Z</dc:date>
    <item>
      <title>Embed authenticate Process with service principal</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Embed-authenticate-Process-with-service-principal/m-p/3988650#M35296</link>
      <description>&lt;P&gt;Hi, I want to embed a report in my Azure web app where users can log in with their ID and see only their own data.&lt;/P&gt;&lt;P&gt;Can you tell me what logic I can apply to get specific user data in my embedded report?&lt;/P&gt;&lt;P&gt;If I use the service principal method and apply Row-Level Security (RLS), how does Power BI know who the user is logging into my web app, and what parameter do I pass in the RLS report?&lt;BR /&gt;Do I filter data using GUID?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 12:52:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Embed-authenticate-Process-with-service-principal/m-p/3988650#M35296</guid>
      <dc:creator>wasiqkhan</dc:creator>
      <dc:date>2024-06-12T12:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Embed authenticate Process with service principal</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Embed-authenticate-Process-with-service-principal/m-p/3989824#M35304</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="751956" data-lia-user-login="wasiqkhan" class="lia-mention lia-mention-user"&gt;wasiqkhan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;With row-level security (RLS), the identifier you use can be different from the identifier of the service subject or primary user used to generate the token. Using a different identifier allows you to display embedded information based on the target user. If you are using RLS, you can sometimes leave the user identification (EffectiveIdentity parameter) unspecified. If you do not use the EffectiveIdentity parameter, the token can access the entire database. This method can be used to grant access to users such as administrators and managers who have permission to view the entire semantic model.&lt;/P&gt;
&lt;P&gt;Here are the steps to achieve this&lt;BR /&gt;&amp;nbsp; &amp;nbsp;1.Start by defining roles in the Power BI Desktop file. These roles should reflect the different user segments or data access levels you wish to enforce.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;2.For dynamic RLS, a custom attribute (such as a GUID or email) can be passed as the username in the EffectiveIdentity object&lt;/P&gt;
&lt;P&gt;Below is the official link will help you:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-gb/power-bi/developer/embedded/embed-tokens?tabs=embed-for-customers" target="_blank"&gt;Permission tokens needed to embed a Power BI app - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-gb/power-bi/developer/embedded/generate-embed-token" target="_blank"&gt;Generate an embed token in Power BI embedded analytics - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Xianda Tang&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 01:27:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Embed-authenticate-Process-with-service-principal/m-p/3989824#M35304</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-13T01:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Embed authenticate Process with service principal</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Embed-authenticate-Process-with-service-principal/m-p/3990965#M35315</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/a&gt;&amp;nbsp;, thanks for providing the solution. I discussed this with my team, and we are facing another difficulty. Initially, we decided to go with RLS (Row-Level Security), but now we face an issue. When my client base exceeds more than 1,000, it's not efficient to manage RLS for each client separately. Is there a way for my clients to see their own data without applying RLS?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 11:24:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Embed-authenticate-Process-with-service-principal/m-p/3990965#M35315</guid>
      <dc:creator>wasiqkhan</dc:creator>
      <dc:date>2024-06-13T11:24:00Z</dc:date>
    </item>
  </channel>
</rss>

