<?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: Access token lacks authorisation in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Access-token-lacks-authorisation/m-p/1959473#M30534</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There may be something wrong to your access token.&lt;/P&gt;
&lt;P&gt;Could your tell me which kind of your Azure App is, app owns data or user owns data?&lt;/P&gt;
&lt;P&gt;There are two kind of&amp;nbsp;a&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b" data-language-for-alternatives="en" data-language-to-translate-into="zh-CN" data-phrase-index="0"&gt;&lt;SPAN&gt;uthentication method for app owns data, service principle or master user?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b" data-language-for-alternatives="en" data-language-to-translate-into="zh-CN" data-phrase-index="0"&gt;&lt;SPAN&gt;I see in your Body you have password and username, if you use user owns data or master user, please use Password in grant_type, if you use service principle , use&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;client_credentials in&amp;nbsp;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b" data-language-for-alternatives="en" data-language-to-translate-into="zh-CN" data-phrase-index="0"&gt;grant_type.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;From your screenshot of API Permission, I find that your didn't grant admin consent for you permissions.(App owns data —— Master user or user owns data need this.)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 731px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/553878iEA431682BB9A4257/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;API Permission configured correctly looks like as below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/553902i26172D958BD39825/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then please check your api resouce, the resource url should be&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://analysis.windows.net/powerbi/api" target="_blank"&gt;&lt;SPAN&gt;https://analysis.windows.net/powerbi/api&lt;/SPAN&gt;&lt;/A&gt; .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;helps, then please consider&amp;nbsp;Accept it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jul 2021 09:18:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-07-15T09:18:37Z</dc:date>
    <item>
      <title>Access token lacks authorisation</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Access-token-lacks-authorisation/m-p/1955088#M30501</link>
      <description>&lt;P&gt;Hello troops, I am trying to develop an Azure application with PowerBI embedded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently stuck at the point of making an API call to get an access_token that will allow me to push a dataset in a specific group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been looking for hours and I was unable to find a solution that allows me to do so.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far, I have managed to create an&amp;nbsp; API on Azure and give that API all the possible Power BI Service permissions (See photo below)&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="Screenshot 2021-07-13 at 17.00.40.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/552376i3F4117867FF75E4D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2021-07-13 at 17.00.40.png" alt="Screenshot 2021-07-13 at 17.00.40.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; Furthermore, what I think I am doing via postman is reaching out to that API and getting validated,&amp;nbsp;as you will see in the next picture&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="Screenshot 2021-07-13 at 17.05.59.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/552383i78D7AF427BDB7E30/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2021-07-13 at 17.05.59.png" alt="Screenshot 2021-07-13 at 17.05.59.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This returns an access_token back, however, this token does not have any permissions as far as I can tell. I have tried getting reports, datasets, dashboards but to no avail.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone could give me some help here I would very much appreciate it!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 16:09:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Access-token-lacks-authorisation/m-p/1955088#M30501</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-13T16:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Access token lacks authorisation</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Access-token-lacks-authorisation/m-p/1959473#M30534</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There may be something wrong to your access token.&lt;/P&gt;
&lt;P&gt;Could your tell me which kind of your Azure App is, app owns data or user owns data?&lt;/P&gt;
&lt;P&gt;There are two kind of&amp;nbsp;a&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b" data-language-for-alternatives="en" data-language-to-translate-into="zh-CN" data-phrase-index="0"&gt;&lt;SPAN&gt;uthentication method for app owns data, service principle or master user?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b" data-language-for-alternatives="en" data-language-to-translate-into="zh-CN" data-phrase-index="0"&gt;&lt;SPAN&gt;I see in your Body you have password and username, if you use user owns data or master user, please use Password in grant_type, if you use service principle , use&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;client_credentials in&amp;nbsp;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b" data-language-for-alternatives="en" data-language-to-translate-into="zh-CN" data-phrase-index="0"&gt;grant_type.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;From your screenshot of API Permission, I find that your didn't grant admin consent for you permissions.(App owns data —— Master user or user owns data need this.)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 731px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/553878iEA431682BB9A4257/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;API Permission configured correctly looks like as below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/553902i26172D958BD39825/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then please check your api resouce, the resource url should be&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://analysis.windows.net/powerbi/api" target="_blank"&gt;&lt;SPAN&gt;https://analysis.windows.net/powerbi/api&lt;/SPAN&gt;&lt;/A&gt; .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;helps, then please consider&amp;nbsp;Accept it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 09:18:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Access-token-lacks-authorisation/m-p/1959473#M30534</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-15T09:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Access token lacks authorisation</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Access-token-lacks-authorisation/m-p/1959505#M30535</link>
      <description>&lt;P&gt;Thanks for your reply&amp;nbsp;@Anonymous&lt;/a&gt;. Indeed the problem was with the authorisation token, I contacted my administrator and asked him to grant permissions to the token. It now works flawlessly!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 09:33:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Access-token-lacks-authorisation/m-p/1959505#M30535</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-15T09:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Access token lacks authorisation</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Access-token-lacks-authorisation/m-p/2667725#M37590</link>
      <description>&lt;P&gt;I am still not able to resolve my issue, could you tell me what all permissions did you give in Azure direcotry and also how are you calling the post method to request for the token? In my case i have client secret , how to request access token without providing username and password&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 15:48:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Access-token-lacks-authorisation/m-p/2667725#M37590</guid>
      <dc:creator>Kapilnathgbp</dc:creator>
      <dc:date>2022-07-28T15:48:27Z</dc:date>
    </item>
  </channel>
</rss>

