<?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 HTTP 401 returned when attempting to generate embed token for report in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/HTTP-401-returned-when-attempting-to-generate-embed-token-for/m-p/465747#M14319</link>
    <description>&lt;P&gt;I am trying to generate an embed token so I can embed a Power BI report into my own web application. I am using the API&amp;nbsp;Embed Token - Reports GenerateTokenInGroup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;POST &lt;A href="https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId}/GenerateToken" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId}/GenerateToken&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am passing in the groupId and the reportId as shown in the API. Below is a screen capture from Postman where I am setting the values.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Postman values 1.png" style="width: 523px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/107386i16C1097DCC9B65B5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Postman values 1.png" alt="Postman values 1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The API response I get is&amp;nbsp;&lt;STRONG&gt;&lt;SPAN class="response-meta-status-code"&gt;401&lt;/SPAN&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN class="response-meta-status-code-desc"&gt;&lt;STRONG&gt;Unauthorized&lt;/STRONG&gt;. However I have all permissions possible within Azure (see screen capture).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="response-meta-status-code-desc"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="azure power bi permissions.png" style="width: 440px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/107384i3C3B1E9048D2D231/image-size/large?v=v2&amp;amp;px=999" role="button" title="azure power bi permissions.png" alt="azure power bi permissions.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jul 2018 16:24:01 GMT</pubDate>
    <dc:creator>human239874</dc:creator>
    <dc:date>2018-07-18T16:24:01Z</dc:date>
    <item>
      <title>HTTP 401 returned when attempting to generate embed token for report</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/HTTP-401-returned-when-attempting-to-generate-embed-token-for/m-p/465747#M14319</link>
      <description>&lt;P&gt;I am trying to generate an embed token so I can embed a Power BI report into my own web application. I am using the API&amp;nbsp;Embed Token - Reports GenerateTokenInGroup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;POST &lt;A href="https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId}/GenerateToken" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId}/GenerateToken&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am passing in the groupId and the reportId as shown in the API. Below is a screen capture from Postman where I am setting the values.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Postman values 1.png" style="width: 523px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/107386i16C1097DCC9B65B5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Postman values 1.png" alt="Postman values 1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The API response I get is&amp;nbsp;&lt;STRONG&gt;&lt;SPAN class="response-meta-status-code"&gt;401&lt;/SPAN&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN class="response-meta-status-code-desc"&gt;&lt;STRONG&gt;Unauthorized&lt;/STRONG&gt;. However I have all permissions possible within Azure (see screen capture).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="response-meta-status-code-desc"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="azure power bi permissions.png" style="width: 440px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/107384i3C3B1E9048D2D231/image-size/large?v=v2&amp;amp;px=999" role="button" title="azure power bi permissions.png" alt="azure power bi permissions.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 16:24:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/HTTP-401-returned-when-attempting-to-generate-embed-token-for/m-p/465747#M14319</guid>
      <dc:creator>human239874</dc:creator>
      <dc:date>2018-07-18T16:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP 401 returned when attempting to generate embed token for report</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/HTTP-401-returned-when-attempting-to-generate-embed-token-for/m-p/465837#M14321</link>
      <description>&lt;P&gt;I solved the issue. I did not have the proper permission (Access the directory as the signed-in user) set under Windows Azure Active Directory. Once I enabled this permission (see screen capture) I was able to generate an embed token for the report.&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="azure-permissions-2.png" style="width: 563px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/107408i5A6676FEE5CE9C7F/image-size/large?v=v2&amp;amp;px=999" role="button" title="azure-permissions-2.png" alt="azure-permissions-2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 17:55:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/HTTP-401-returned-when-attempting-to-generate-embed-token-for/m-p/465837#M14321</guid>
      <dc:creator>human239874</dc:creator>
      <dc:date>2018-07-18T17:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP 401 returned when attempting to generate embed token for report</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/HTTP-401-returned-when-attempting-to-generate-embed-token-for/m-p/3494383#M45085</link>
      <description>&lt;P&gt;Hello.&lt;BR /&gt;Where can I find this screen?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 16:09:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/HTTP-401-returned-when-attempting-to-generate-embed-token-for/m-p/3494383#M45085</guid>
      <dc:creator>Mumin192</dc:creator>
      <dc:date>2023-10-24T16:09:57Z</dc:date>
    </item>
  </channel>
</rss>

