<?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: How to get the correct authorization token in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-get-the-correct-authorization-token/m-p/1872037#M29679</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/252523"&gt;@lilian7300&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to this blog:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://dataveld.com/2020/05/09/using-postman-with-the-power-bi-rest-api/" target="_self"&gt;https://dataveld.com/2020/05/09/using-postman-with-the-power-bi-rest-api/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Liang &lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 31 May 2021 05:35:18 GMT</pubDate>
    <dc:creator>V-lianl-msft</dc:creator>
    <dc:date>2021-05-31T05:35:18Z</dc:date>
    <item>
      <title>How to get the correct authorization token</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-get-the-correct-authorization-token/m-p/1868305#M29640</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to design a simple web app which can use power BI REST API to refresh a dataset.&lt;/P&gt;&lt;P&gt;But I stuck on how to get the authorization token from Azure Directory.&lt;/P&gt;&lt;P&gt;I tried to use POSTMAN and get a token but it return "401 unauthorize error" when I try to refresh the dataset.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="POSTMAN.PNG" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/523081i4D987DD7EF816AC4/image-size/large?v=v2&amp;amp;px=999" role="button" title="POSTMAN.PNG" alt="POSTMAN.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="POSTMAN_refresh.PNG" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/523082i78D0386BCD6463E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="POSTMAN_refresh.PNG" alt="POSTMAN_refresh.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But if I use the token I get from microsoft&amp;nbsp; try it link (&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/refreshdataset" target="_self"&gt;Datasets - Refresh Dataset - REST API (Power BI Power BI REST APIs) | Microsoft Docs&lt;/A&gt;&amp;nbsp;), it works.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PBI_REST_API.PNG" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/523083iDCDE83E57C6A939E/image-size/large?v=v2&amp;amp;px=999" role="button" title="PBI_REST_API.PNG" alt="PBI_REST_API.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anybody here can help on how to get the correct authorization token?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 17:47:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-get-the-correct-authorization-token/m-p/1868305#M29640</guid>
      <dc:creator>lilian7300</dc:creator>
      <dc:date>2021-05-27T17:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the correct authorization token</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-get-the-correct-authorization-token/m-p/1870953#M29661</link>
      <description>&lt;P&gt;When you acquire an access token, you must request a permission scope of&amp;nbsp;&lt;SPAN&gt;Dataset.ReadWrite.All.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 29 May 2021 11:52:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-get-the-correct-authorization-token/m-p/1870953#M29661</guid>
      <dc:creator>TedPattison</dc:creator>
      <dc:date>2021-05-29T11:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the correct authorization token</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-get-the-correct-authorization-token/m-p/1872037#M29679</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/252523"&gt;@lilian7300&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to this blog:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://dataveld.com/2020/05/09/using-postman-with-the-power-bi-rest-api/" target="_self"&gt;https://dataveld.com/2020/05/09/using-postman-with-the-power-bi-rest-api/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Liang &lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 05:35:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-get-the-correct-authorization-token/m-p/1872037#M29679</guid>
      <dc:creator>V-lianl-msft</dc:creator>
      <dc:date>2021-05-31T05:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the correct authorization token</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-get-the-correct-authorization-token/m-p/1880173#M29770</link>
      <description>&lt;P&gt;Thanks for the replies but it still doesn't work, our company use DUO as a second authorization, is anybody have the experience for that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 12:59:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-get-the-correct-authorization-token/m-p/1880173#M29770</guid>
      <dc:creator>lilian7300</dc:creator>
      <dc:date>2021-06-03T12:59:12Z</dc:date>
    </item>
  </channel>
</rss>

