<?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 REST API Multiple Usernames In Effective Identity, RLS in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-Multiple-Usernames-In-Effective-Identity-RLS/m-p/1770359#M28816</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a web app that uses the Power BI REST API to generate an embed token with RLS. Our application follows the 'App owns data' embed scenario. With the following effective identity I want to generate an embed token for specific reports, datasets and target workspaces.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are 3 scenarios I need to handle:&lt;/P&gt;&lt;P&gt;1) to be able to provide project name, which will later filter the data for that project; known as the “ProjectName”&lt;/P&gt;&lt;P&gt;2) to be able to provide the user’s email from the AAD that was authorized, which will later filter the visible data that the user can view; known as the “User”&lt;/P&gt;&lt;P&gt;3) to be able to provide both the project name, as well as the user’s principal email to later filter that project for report data on the users perspective; so “ProjectName” &amp;amp; “User”&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can not tie the User to ProjectName. These are independent, and we need to handle them separately.&lt;/P&gt;&lt;P&gt;There is a relationship between them both, but in our scenario need report to handle them separately for filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to handle both 1 &amp;amp; 2 separately, but I have yet to figure out how scenario 3 would be applied in the effective identity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The request body looks to only be able to handle one username in the object as the unique identifier.&lt;/P&gt;&lt;P&gt;Is there a way to use 2 unique identifiers to filter the datasets and reports for the embedding?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let ProjectName= “Green”, User= “&lt;A href="mailto:myname@gmail.com" target="_blank"&gt;myname@gmail.com&lt;/A&gt;”, where the role(s) that would use these two values to filter the dataset would be called “ProjectNameAndUser”.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; "accessLevel": "View",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "identities": [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "username": “Green”, “&lt;A href="mailto:myname@gmail.com" target="_blank"&gt;myname@gmail.com&lt;/A&gt;”&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"roles": [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ProjectNameAndUser",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "datasets": [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "abcdefghijk"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; ]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the help!&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/2757"&gt;@PowerBI&lt;/a&gt; &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/58915"&gt;@rls&lt;/a&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Apr 2021 15:39:16 GMT</pubDate>
    <dc:creator>SeSPowerBi</dc:creator>
    <dc:date>2021-04-06T15:39:16Z</dc:date>
    <item>
      <title>Power BI REST API Multiple Usernames In Effective Identity, RLS</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-Multiple-Usernames-In-Effective-Identity-RLS/m-p/1770359#M28816</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a web app that uses the Power BI REST API to generate an embed token with RLS. Our application follows the 'App owns data' embed scenario. With the following effective identity I want to generate an embed token for specific reports, datasets and target workspaces.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are 3 scenarios I need to handle:&lt;/P&gt;&lt;P&gt;1) to be able to provide project name, which will later filter the data for that project; known as the “ProjectName”&lt;/P&gt;&lt;P&gt;2) to be able to provide the user’s email from the AAD that was authorized, which will later filter the visible data that the user can view; known as the “User”&lt;/P&gt;&lt;P&gt;3) to be able to provide both the project name, as well as the user’s principal email to later filter that project for report data on the users perspective; so “ProjectName” &amp;amp; “User”&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can not tie the User to ProjectName. These are independent, and we need to handle them separately.&lt;/P&gt;&lt;P&gt;There is a relationship between them both, but in our scenario need report to handle them separately for filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to handle both 1 &amp;amp; 2 separately, but I have yet to figure out how scenario 3 would be applied in the effective identity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The request body looks to only be able to handle one username in the object as the unique identifier.&lt;/P&gt;&lt;P&gt;Is there a way to use 2 unique identifiers to filter the datasets and reports for the embedding?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let ProjectName= “Green”, User= “&lt;A href="mailto:myname@gmail.com" target="_blank"&gt;myname@gmail.com&lt;/A&gt;”, where the role(s) that would use these two values to filter the dataset would be called “ProjectNameAndUser”.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; "accessLevel": "View",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "identities": [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "username": “Green”, “&lt;A href="mailto:myname@gmail.com" target="_blank"&gt;myname@gmail.com&lt;/A&gt;”&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"roles": [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ProjectNameAndUser",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "datasets": [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "abcdefghijk"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; ]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the help!&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/2757"&gt;@PowerBI&lt;/a&gt; &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/58915"&gt;@rls&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 15:39:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-Multiple-Usernames-In-Effective-Identity-RLS/m-p/1770359#M28816</guid>
      <dc:creator>SeSPowerBi</dc:creator>
      <dc:date>2021-04-06T15:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI REST API Multiple Usernames In Effective Identity, RLS</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-Multiple-Usernames-In-Effective-Identity-RLS/m-p/1774002#M28848</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/290428"&gt;@SeSPowerBi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can refer the content in the following links to get it:&lt;/P&gt;
&lt;P&gt;&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;&lt;STRONG&gt;Applying user and role to an embed token&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://endjin.com/blog/2020/05/power-bi-embedded-convention-based-dynamic-row-level-security" target="_self"&gt;&lt;STRONG&gt;Power BI Embedded: Convention-based dynamic Row-level Security&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 09:19:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-Multiple-Usernames-In-Effective-Identity-RLS/m-p/1774002#M28848</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-08T09:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI REST API Multiple Usernames In Effective Identity, RLS</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-Multiple-Usernames-In-Effective-Identity-RLS/m-p/1777635#M28880</link>
      <description>&lt;P&gt;Thank you! That second link is very useful.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 19:08:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-Multiple-Usernames-In-Effective-Identity-RLS/m-p/1777635#M28880</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-09T19:08:01Z</dc:date>
    </item>
  </channel>
</rss>

