<?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: Use row-level security with Power BI embedded content in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Use-row-level-security-with-Power-BI-embedded-content/m-p/456759#M14066</link>
    <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/28904"&gt;@v-jiascu-msft&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 - Yes, is a live connection.&lt;/P&gt;&lt;P&gt;2 -&amp;nbsp;if you mean DimFacilitySecurity[UserName] has the same format as CustomData(), the answeer is yes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DimFaciltySecurity table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FacilityKey&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FacilityName&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;UserName&lt;BR /&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Master Forms&amp;nbsp; &amp;nbsp; &amp;nbsp; guest@contoso.com&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jul 2018 16:11:47 GMT</pubDate>
    <dc:creator>AldoSaucedo</dc:creator>
    <dc:date>2018-07-06T16:11:47Z</dc:date>
    <item>
      <title>Use row-level security with Power BI embedded content</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Use-row-level-security-with-Power-BI-embedded-content/m-p/455867#M14029</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to embed Power BI reports in a Web Application and I'm following this tutorials&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embed-sample-for-customers" target="_self"&gt;Embed a Power BI report for your customers&lt;/A&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded-row-level-security#applying-user-and-role-to-an-embed-token" target="_self"&gt;Use Row-Level Security with Power BI embedded&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and using the base code from Github sample&amp;nbsp;&lt;A href="https://github.com/Microsoft/PowerBI-Developer-Samples" target="_self"&gt;App Owns Data Sample&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Power BI Reports are connected to an&amp;nbsp;&lt;STRONG&gt;Azure Analysis Service Model&amp;nbsp;&lt;/STRONG&gt;and there I have some roles created to test the&lt;/P&gt;&lt;P&gt;Row-Level Security.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to pass&amp;nbsp;a test username from the app to the AAS Model in order to restrtric the data they can see based on the Roles created. Here's my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var rls = new EffectiveIdentity("guest@contoso.com", new List&amp;lt;string&amp;gt; { report.DatasetId }, null, "guest@contoso.com");
if (!string.IsNullOrWhiteSpace(roles))
{
   var rolesList = new List&amp;lt;string&amp;gt;();
   rolesList.AddRange(roles.Split(','));
   rls.Roles = rolesList;
}
// Generate Embed Token with effective identities.
generateTokenRequestParameters = new GenerateTokenRequest(accessLevel: "view", identities: new List&amp;lt;EffectiveIdentity&amp;gt; { rls });&lt;/PRE&gt;&lt;P&gt;But I get this error when trying to see the embedded report:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;"Creating embed token for accessing dataset xxxxxxxxxxx requries effective identity username to be identical to the caller's principal name"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I pass the caller's principal username the report obviusly works ok., but I want to pass&amp;nbsp;another username to test&amp;nbsp;&lt;/P&gt;&lt;P&gt;Row-Level security. As you can see I'm also passing a value to CUSTOMDATA() property, which is being used in a DAX for one of my roles but my data is not being filtered correctly&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="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/105047i8070900B96E43F8F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Does anyone have and Idea on what could be happening or if I missing something?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 21:24:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Use-row-level-security-with-Power-BI-embedded-content/m-p/455867#M14029</guid>
      <dc:creator>AldoSaucedo</dc:creator>
      <dc:date>2018-07-05T21:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Use row-level security with Power BI embedded content</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Use-row-level-security-with-Power-BI-embedded-content/m-p/456377#M14053</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/71057"&gt;@AldoSaucedo&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Is it a live connection?&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;&amp;gt;The CustomData feature will only work for models that reside in Azure Analysis Services, and it only works in live mode.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;2. Does it have same format with "DimFacilitySecurity[UserName]"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Segoe UI'; font-size: 10.5pt; color: #333333;"&gt;Best Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Segoe UI'; font-size: 10.5pt; color: #333333;"&gt;Dale&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 09:23:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Use-row-level-security-with-Power-BI-embedded-content/m-p/456377#M14053</guid>
      <dc:creator>v-jiascu-msft</dc:creator>
      <dc:date>2018-07-06T09:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Use row-level security with Power BI embedded content</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Use-row-level-security-with-Power-BI-embedded-content/m-p/456759#M14066</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/28904"&gt;@v-jiascu-msft&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 - Yes, is a live connection.&lt;/P&gt;&lt;P&gt;2 -&amp;nbsp;if you mean DimFacilitySecurity[UserName] has the same format as CustomData(), the answeer is yes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DimFaciltySecurity table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FacilityKey&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FacilityName&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;UserName&lt;BR /&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Master Forms&amp;nbsp; &amp;nbsp; &amp;nbsp; guest@contoso.com&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 16:11:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Use-row-level-security-with-Power-BI-embedded-content/m-p/456759#M14066</guid>
      <dc:creator>AldoSaucedo</dc:creator>
      <dc:date>2018-07-06T16:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Use row-level security with Power BI embedded content</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Use-row-level-security-with-Power-BI-embedded-content/m-p/649853#M18882</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/71057"&gt;@AldoSaucedo&lt;/a&gt;&amp;nbsp; did you ever get this resolved? I'm having the same issue.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 00:58:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Use-row-level-security-with-Power-BI-embedded-content/m-p/649853#M18882</guid>
      <dc:creator>MattStannett</dc:creator>
      <dc:date>2019-03-21T00:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Use row-level security with Power BI embedded content</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Use-row-level-security-with-Power-BI-embedded-content/m-p/658324#M18967</link>
      <description>&lt;P&gt;I finally got this resolved and posted my solution on my &lt;A href="https://community.powerbi.com/t5/Developer/How-to-configure-UPN-mapping-CustomData-for-Azure-Analysis/m-p/658323#M18966" target="_self"&gt;question thread&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 31 Mar 2019 22:27:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Use-row-level-security-with-Power-BI-embedded-content/m-p/658324#M18967</guid>
      <dc:creator>MattStannett</dc:creator>
      <dc:date>2019-03-31T22:27:48Z</dc:date>
    </item>
  </channel>
</rss>

