<?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 Can't get the data calling Admin Api via the AAD token? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Can-t-get-the-data-calling-Admin-Api-via-the-AAD-token/m-p/1491590#M26450</link>
    <description>&lt;P&gt;hi,I am a powerbi administrator and I try to call admin api and Found I can't get data using the aad token I get.&lt;/P&gt;&lt;P&gt;After calling the admin api "&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/admin/groups_getgroupsasadmin&amp;quot;,I" target="_blank"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/admin/groups_getgroupsasadmin",I&lt;/A&gt;&amp;nbsp; only get the String "",and nothing returns.&lt;/P&gt;&lt;P&gt;And I click the "try it" button at the page “&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/admin/groups_getgroupsasadmin”“" target="_blank"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/admin/groups_getgroupsasadmin” “&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/admin/groups_getgroupsasadmin”“" target="_blank"&gt;”&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and I can get the data. And I open the network tool and found it's using the pbi_access_token not the access_token And I copy the pbi_access_token to my code and it's ok.&lt;/P&gt;&lt;P&gt;so How Can I call the admin api？&lt;/P&gt;&lt;P&gt;But the same token can be used to call other api.&lt;/P&gt;&lt;P&gt;So I don't know where I do the mistake.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Nov 2020 02:36:33 GMT</pubDate>
    <dc:creator>siweichen</dc:creator>
    <dc:date>2020-11-13T02:36:33Z</dc:date>
    <item>
      <title>Can't get the data calling Admin Api via the AAD token?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Can-t-get-the-data-calling-Admin-Api-via-the-AAD-token/m-p/1491590#M26450</link>
      <description>&lt;P&gt;hi,I am a powerbi administrator and I try to call admin api and Found I can't get data using the aad token I get.&lt;/P&gt;&lt;P&gt;After calling the admin api "&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/admin/groups_getgroupsasadmin&amp;quot;,I" target="_blank"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/admin/groups_getgroupsasadmin",I&lt;/A&gt;&amp;nbsp; only get the String "",and nothing returns.&lt;/P&gt;&lt;P&gt;And I click the "try it" button at the page “&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/admin/groups_getgroupsasadmin”“" target="_blank"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/admin/groups_getgroupsasadmin” “&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/admin/groups_getgroupsasadmin”“" target="_blank"&gt;”&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and I can get the data. And I open the network tool and found it's using the pbi_access_token not the access_token And I copy the pbi_access_token to my code and it's ok.&lt;/P&gt;&lt;P&gt;so How Can I call the admin api？&lt;/P&gt;&lt;P&gt;But the same token can be used to call other api.&lt;/P&gt;&lt;P&gt;So I don't know where I do the mistake.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 02:36:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Can-t-get-the-data-calling-Admin-Api-via-the-AAD-token/m-p/1491590#M26450</guid>
      <dc:creator>siweichen</dc:creator>
      <dc:date>2020-11-13T02:36:33Z</dc:date>
    </item>
  </channel>
</rss>

