<?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: Create level Permission for Embedded Report causes 500 error in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Create-level-Permission-for-Embedded-Report-causes-500-error/m-p/342473#M10149</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/49863"&gt;@sjorg&lt;/a&gt;,&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;
&lt;P&gt;How do I do that?&amp;nbsp;&lt;STRONG&gt;My real end goal&lt;/STRONG&gt; is to be able to &lt;STRONG&gt;programmatically&lt;/STRONG&gt; create a &lt;STRONG&gt;new blank Report via API, and add data sources via&amp;nbsp;Azure Tables&lt;/STRONG&gt; to it. Then I want to return that ReportId to my client side &amp;amp; embed it, so the user can play with the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have any hints on that &lt;STRONG&gt;(is that even possible?)&lt;/STRONG&gt;, would be much appreciated.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, you should be abe to create a new blank report via Power BI Rest API, and let the end users play with it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I just verified that the rest API&amp;nbsp;still works fine for me,&amp;nbsp;&lt;SPAN&gt;when I set the accessLevel to "Create".&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If the issue persists on your environment, I would suggest you reopen &lt;A href="https://github.com/Microsoft/PowerBI-CSharp/issues/108" target="_self"&gt;this&lt;/A&gt; issue&amp;nbsp;or create a support ticket on &lt;A href="https://powerbi.microsoft.com/en-us/support/" target="_self"&gt;Power BI Support&lt;/A&gt; page for better assistance.&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.fabric.microsoft.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jan 2018 07:13:26 GMT</pubDate>
    <dc:creator>v-ljerr-msft</dc:creator>
    <dc:date>2018-01-22T07:13:26Z</dc:date>
    <item>
      <title>Create level Permission for Embedded Report causes 500 error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Create-level-Permission-for-Embedded-Report-causes-500-error/m-p/342130#M10134</link>
      <description>&lt;P&gt;I'm embedding a report in an "App owns data" scenario.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the below code, when I set the accessLevel to "View" or "Edit" it works, but "Create" throws a 500 error.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE&gt;        // Generate Embed Token.
        var generateTokenRequestParameters = new GenerateTokenRequest(accessLevel: "Edit");
        var tokenResponse = await client.Reports.GenerateTokenInGroupAsync(groupId, reportId, generateTokenRequestParameters);&lt;/PRE&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;(I am using this sample, with some edits that are irrelevant to this question - as I said View and Edit work just fine)&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/snobu/powerbi-embed-v2/blob/master/backend-as-func/run.csx" target="_blank"&gt;https://github.com/snobu/powerbi-embed-v2/blob/master/backend-as-func/run.csx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have granted the "Content.Create" permission in the Azure app registration. My hunch is that Create is not a valid "Reports" object permission...I have to embed a "Content" object instead, based on this list&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/power-bi-permissions" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/developer/power-bi-permissions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I do that?&amp;nbsp;&lt;STRONG&gt;My real end goal&lt;/STRONG&gt; is to be able to &lt;STRONG&gt;programmatically&lt;/STRONG&gt; create a &lt;STRONG&gt;new blank Report via API, and add data sources via&amp;nbsp;Azure Tables&lt;/STRONG&gt; to it. Then I want to return that ReportId to my client side &amp;amp; embed it, so the user can play with the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have any hints on that &lt;STRONG&gt;(is that even possible?)&lt;/STRONG&gt;, would be much appreciated.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Jan 2018 22:52:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Create-level-Permission-for-Embedded-Report-causes-500-error/m-p/342130#M10134</guid>
      <dc:creator>sjorg</dc:creator>
      <dc:date>2018-01-20T22:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Create level Permission for Embedded Report causes 500 error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Create-level-Permission-for-Embedded-Report-causes-500-error/m-p/342473#M10149</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/49863"&gt;@sjorg&lt;/a&gt;,&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;
&lt;P&gt;How do I do that?&amp;nbsp;&lt;STRONG&gt;My real end goal&lt;/STRONG&gt; is to be able to &lt;STRONG&gt;programmatically&lt;/STRONG&gt; create a &lt;STRONG&gt;new blank Report via API, and add data sources via&amp;nbsp;Azure Tables&lt;/STRONG&gt; to it. Then I want to return that ReportId to my client side &amp;amp; embed it, so the user can play with the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have any hints on that &lt;STRONG&gt;(is that even possible?)&lt;/STRONG&gt;, would be much appreciated.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, you should be abe to create a new blank report via Power BI Rest API, and let the end users play with it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I just verified that the rest API&amp;nbsp;still works fine for me,&amp;nbsp;&lt;SPAN&gt;when I set the accessLevel to "Create".&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If the issue persists on your environment, I would suggest you reopen &lt;A href="https://github.com/Microsoft/PowerBI-CSharp/issues/108" target="_self"&gt;this&lt;/A&gt; issue&amp;nbsp;or create a support ticket on &lt;A href="https://powerbi.microsoft.com/en-us/support/" target="_self"&gt;Power BI Support&lt;/A&gt; page for better assistance.&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.fabric.microsoft.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 07:13:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Create-level-Permission-for-Embedded-Report-causes-500-error/m-p/342473#M10149</guid>
      <dc:creator>v-ljerr-msft</dc:creator>
      <dc:date>2018-01-22T07:13:26Z</dc:date>
    </item>
  </channel>
</rss>

