<?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: Using Customdata with live connection to on-prem SSAS in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Using-Customdata-with-live-connection-to-on-prem-SSAS/m-p/887640#M21874</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to the following documents:&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #171717; font-family: 'Segoe UI', SegoeUI, 'Segoe WP', 'Helvetica Neue', Helvetica, Tahoma, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;steps to begin setting up the CustomData() feature with your Power BI Embedded application.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded-row-level-security#working-with-analysis-services-live-connections" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/developer/embedded-row-level-security#working-with-analysis-services-live-connections&lt;/A&gt;&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;Best Regards&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;Maggie&lt;/FONT&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jan 2020 07:07:25 GMT</pubDate>
    <dc:creator>v-juanli-msft</dc:creator>
    <dc:date>2020-01-02T07:07:25Z</dc:date>
    <item>
      <title>Using Customdata with live connection to on-prem SSAS</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-Customdata-with-live-connection-to-on-prem-SSAS/m-p/883819#M21806</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm implementing a Power BI Embedded solution having a live connection to my on-prem SSAS. I want to define roles based on my application username. I followed this blog :&amp;nbsp;&lt;A href="https://www.kasperonbi.com/using-customdata-and-ssas-with-power-bi-embedded/" target="_blank" rel="noopener"&gt;https://www.kasperonbi.com/using-customdata-and-ssas-with-power-bi-embedded/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution works fine in the service, I can see using SQL Server Profiler that the customdata has been passed. But when calling the API for the embed token, I get the following error:&amp;nbsp;&lt;/P&gt;&lt;H2&gt;&lt;STRONG&gt;&lt;I&gt;Operation returned an invalid status code 'Forbidden'&lt;/I&gt;&lt;/STRONG&gt;&lt;/H2&gt;&lt;P&gt;I noticed while debugging that the customdata value hasn't been passed and it's always null.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use the following to generate the token:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var generateTokenRequestParameters = new GenerateTokenRequest("View", identities: new List&amp;lt;EffectiveIdentity&amp;gt; { new EffectiveIdentity(username: currentUserName, roles: new List&amp;lt;string&amp;gt; { "RoleA" }, datasets: new List&amp;lt;string&amp;gt; { "b1ff16fc-aa63-49a3-8cb6-cad785b228f7" }) });&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;string embedToken =&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;(await pbiClient.Reports.GenerateTokenInGroupAsync(workspaceId,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;report.Id,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;generateTokenRequestParameters)).Token;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can you help me troubleshoot this issue, a quick answer would be much appreciated.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Best,&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2019 15:49:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-Customdata-with-live-connection-to-on-prem-SSAS/m-p/883819#M21806</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-24T15:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using Customdata with live connection to on-prem SSAS</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-Customdata-with-live-connection-to-on-prem-SSAS/m-p/887640#M21874</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to the following documents:&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #171717; font-family: 'Segoe UI', SegoeUI, 'Segoe WP', 'Helvetica Neue', Helvetica, Tahoma, Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;steps to begin setting up the CustomData() feature with your Power BI Embedded application.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded-row-level-security#working-with-analysis-services-live-connections" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/developer/embedded-row-level-security#working-with-analysis-services-live-connections&lt;/A&gt;&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;Best Regards&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #ffffff;"&gt;Maggie&lt;/FONT&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 07:07:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-Customdata-with-live-connection-to-on-prem-SSAS/m-p/887640#M21874</guid>
      <dc:creator>v-juanli-msft</dc:creator>
      <dc:date>2020-01-02T07:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using Customdata with live connection to on-prem SSAS</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-Customdata-with-live-connection-to-on-prem-SSAS/m-p/889330#M21905</link>
      <description>&lt;P&gt;Thank you for your answer,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is exactly what I followed. Now I'm getting another error, if I embed the report without any role it works perfectly, but once I add a role, it says "can't deploy the visual" and SQL profiler shows the following : "The cube either does not exist or has not been processed."&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone faced this before ?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 18:26:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-Customdata-with-live-connection-to-on-prem-SSAS/m-p/889330#M21905</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-03T18:26:53Z</dc:date>
    </item>
  </channel>
</rss>

