<?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 Using CustomData with Azure Analysis Services in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Using-CustomData-with-Azure-Analysis-Services/m-p/382556#M11355</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm embedding reports that use a live connection to Azure Analysis Services in an 'App Owns Data' scenario.&amp;nbsp; I'd like to use the CustomData feature, as described&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded-row-level-security" target="_self"&gt;here&lt;/A&gt;, to do dynamic filtering on the reports.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've followed the documentation, but it doesn't look like the EffectiveIdentity object has a constructor that takes the CustomData string.&amp;nbsp; Here's the code I'm currently using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var generateTokenRequestParameters = new GenerateTokenRequest("view", null, identities: new List&amp;lt;EffectiveIdentity&amp;gt; { new EffectiveIdentity(username: username, roles: new List&amp;lt;string&amp;gt; { "TestRole" }, datasets: new List&amp;lt;string&amp;gt; { report.DatasetId }) });

var tokenResponse = client.Reports.GenerateTokenInGroupAsync(groupId, report.Id, generateTokenRequestParameters).Result;&lt;/PRE&gt;&lt;P&gt;How should I modify this to use CustomData?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 23 Mar 2018 11:36:29 GMT</pubDate>
    <dc:creator>jonharding</dc:creator>
    <dc:date>2018-03-23T11:36:29Z</dc:date>
    <item>
      <title>Using CustomData with Azure Analysis Services</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-CustomData-with-Azure-Analysis-Services/m-p/382556#M11355</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm embedding reports that use a live connection to Azure Analysis Services in an 'App Owns Data' scenario.&amp;nbsp; I'd like to use the CustomData feature, as described&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded-row-level-security" target="_self"&gt;here&lt;/A&gt;, to do dynamic filtering on the reports.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've followed the documentation, but it doesn't look like the EffectiveIdentity object has a constructor that takes the CustomData string.&amp;nbsp; Here's the code I'm currently using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var generateTokenRequestParameters = new GenerateTokenRequest("view", null, identities: new List&amp;lt;EffectiveIdentity&amp;gt; { new EffectiveIdentity(username: username, roles: new List&amp;lt;string&amp;gt; { "TestRole" }, datasets: new List&amp;lt;string&amp;gt; { report.DatasetId }) });

var tokenResponse = client.Reports.GenerateTokenInGroupAsync(groupId, report.Id, generateTokenRequestParameters).Result;&lt;/PRE&gt;&lt;P&gt;How should I modify this to use CustomData?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 11:36:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-CustomData-with-Azure-Analysis-Services/m-p/382556#M11355</guid>
      <dc:creator>jonharding</dc:creator>
      <dc:date>2018-03-23T11:36:29Z</dc:date>
    </item>
    <item>
      <title>Error creating embed token for report using effective identity</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-CustomData-with-Azure-Analysis-Services/m-p/380807#M11390</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to embed all of the reports in a workspace, in an 'App Owns Data' scenario.&amp;nbsp; The reports use an on-prem SSAS model as a source, which has RLS defined in the model using roles.&amp;nbsp; My understanding from&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded-row-level-security" target="_blank"&gt;this documentation&lt;/A&gt;&amp;nbsp;is that I should be able to pass in an EffectiveIdentity to the GenerateTokenRequest method where I specify the username, role to use and dataset id.&amp;nbsp; However, when I do this I'm getting the following error: "Creating embed token for accessing dataset xxxx-xxxx-xxxx-xxxx shouldn't have effective identity".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code that I'm using:&lt;/P&gt;&lt;PRE&gt;var generateTokenRequestParameters = new GenerateTokenRequest("view", null, identities: new List&amp;lt;EffectiveIdentity&amp;gt; { new EffectiveIdentity(username: username, roles: new List&amp;lt;string&amp;gt; { "PBITest" }, datasets: new List&amp;lt;string&amp;gt; { report.DatasetId }) });

var tokenResponse = client.Reports.GenerateTokenInGroupAsync(groupId, report.Id, generateTokenRequestParameters).Result;&lt;/PRE&gt;&lt;P&gt;I'd really appreciate some help on finding where I've gone wrong...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 12:19:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-CustomData-with-Azure-Analysis-Services/m-p/380807#M11390</guid>
      <dc:creator>jonharding</dc:creator>
      <dc:date>2018-03-21T12:19:41Z</dc:date>
    </item>
    <item>
      <title>Help: Using CustomData with Azure Analysis Services</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-CustomData-with-Azure-Analysis-Services/m-p/382551#M11389</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm&amp;nbsp;embedding reports that use a live connection to Azure Analysis Services in an 'App Owns Data' scenario.&amp;nbsp; I'd like to explore the possibility of using the CustomData feature for dynamic filtering of reports as documented&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded-row-level-security" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem I have is that the EffectiveIdentity object has no overload for including CustomData as described in the documentation.&amp;nbsp; How do I pass CustomData in this case?&amp;nbsp; Here's an example of the code I'm currently using to generate the embed token:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var generateTokenRequestParameters = new GenerateTokenRequest("view", null, identities: new List&amp;lt;EffectiveIdentity&amp;gt; { new EffectiveIdentity(username: username, roles: new List&amp;lt;string&amp;gt; { "TestRole" }, datasets: new List&amp;lt;string&amp;gt; { report.DatasetId }) });

var tokenResponse = client.Reports.GenerateTokenInGroupAsync(groupId, report.Id, generateTokenRequestParameters).Result;&lt;/PRE&gt;&lt;P&gt;How should I modify this to support CustomData?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 11:30:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-CustomData-with-Azure-Analysis-Services/m-p/382551#M11389</guid>
      <dc:creator>jonharding</dc:creator>
      <dc:date>2018-03-23T11:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using CustomData with Azure Analysis Services</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-CustomData-with-Azure-Analysis-Services/m-p/383501#M11388</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you are hitting the limits when using the RLS in Power BI Embeded for &lt;SPAN&gt;Azure Analysis Services&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Analysis Services live connections are supported for on-premises servers.&lt;/LI&gt;&lt;LI&gt;Azure Analysis Services live connections support filtering by roles, &lt;STRONG&gt;but not dynamic by username.&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;Looping Staff&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/38019"&gt;@nimrod&lt;/a&gt;&amp;nbsp;to confirm the current status for whether Custom Data filter is supported when it comes to RLS in Power BI embeded for &lt;SPAN&gt;Azure Analysis Services.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A thread for your &lt;A href="http://community.powerbi.com/t5/Service/Azure-Analysis-Services-RLS-and-Embedding/td-p/239127/page/3" target="_self"&gt;reference&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Michael&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 07:37:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-CustomData-with-Azure-Analysis-Services/m-p/383501#M11388</guid>
      <dc:creator>v-micsh-msft</dc:creator>
      <dc:date>2018-03-26T07:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using CustomData with Azure Analysis Services</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-CustomData-with-Azure-Analysis-Services/m-p/383537#M11393</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This sentence in the documentation isn't updated, we will fix that.&lt;/P&gt;&lt;P&gt;See &lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded-row-level-security#working-with-analysis-services-live-connections" target="_self"&gt;this section&lt;/A&gt; in the same doc, on how to use 'CustomData'.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 08:04:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-CustomData-with-Azure-Analysis-Services/m-p/383537#M11393</guid>
      <dc:creator>nimrod</dc:creator>
      <dc:date>2018-03-26T08:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using CustomData with Azure Analysis Services</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-CustomData-with-Azure-Analysis-Services/m-p/383639#M11396</link>
      <description>&lt;P&gt;Thanks for your replies, it's good to see the documentation will be updated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to get CustomData working with the latest api packages, so we can use that in conjunction with roles to do what we need to.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 09:23:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-CustomData-with-Azure-Analysis-Services/m-p/383639#M11396</guid>
      <dc:creator>jonharding</dc:creator>
      <dc:date>2018-03-26T09:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using CustomData with Azure Analysis Services</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-CustomData-with-Azure-Analysis-Services/m-p/455595#M14021</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/26969"&gt;@jonharding&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to do the same but when I try to generate the token I'm getting this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Creating embed token for accessing dataset XXXXXXXX requries effective identity username to be identical to the caller's principal name&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So I decided to test &lt;STRONG&gt;CUSTOMDATA()&lt;/STRONG&gt;&amp;nbsp;functionality but I'm not sure how it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please provide a sample of the roles you have created and the code you have in your app (App Owns Data) ?&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 13:46:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-CustomData-with-Azure-Analysis-Services/m-p/455595#M14021</guid>
      <dc:creator>AldoSaucedo</dc:creator>
      <dc:date>2018-07-05T13:46:49Z</dc:date>
    </item>
  </channel>
</rss>

