<?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 Service Principle API Authentication to Dataset Refresh Endpoints in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Service-Principle-API-Authentication-to-Dataset-Refresh/m-p/2265414#M33738</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am building a dataset of Power Bi admin data and a key requirement is to see the refresh status and refresh schedule of all the datasets in our service.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I authenticate using a service principle which has access to the admin APIs but not the other sections of the API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g. the service principle account can authenticate to this:&amp;nbsp;&lt;A href="https://api.powerbi.com/v1.0/myorg/admin/datasets" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/admin/datasets&lt;/A&gt;&amp;nbsp;which gives a list of all the datasets and some information about them, but not the refresh info.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This call, not in the Admin API, gives the refresh information I am after:&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://api.powerbi.com/v1.0/myorg/datasets/{datasetId}/refreshes" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/datasets/{datasetId}/refreshes&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the bearer returned by authenticating with the service princilple account does not have access to this call.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to authenticate the service principle to access other areas of the API, or is there call I am missing in the admin API to get the data I'm after?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jan 2022 11:44:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-01-04T11:44:02Z</dc:date>
    <item>
      <title>Service Principle API Authentication to Dataset Refresh Endpoints</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Service-Principle-API-Authentication-to-Dataset-Refresh/m-p/2265414#M33738</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am building a dataset of Power Bi admin data and a key requirement is to see the refresh status and refresh schedule of all the datasets in our service.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I authenticate using a service principle which has access to the admin APIs but not the other sections of the API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g. the service principle account can authenticate to this:&amp;nbsp;&lt;A href="https://api.powerbi.com/v1.0/myorg/admin/datasets" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/admin/datasets&lt;/A&gt;&amp;nbsp;which gives a list of all the datasets and some information about them, but not the refresh info.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This call, not in the Admin API, gives the refresh information I am after:&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://api.powerbi.com/v1.0/myorg/datasets/{datasetId}/refreshes" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/datasets/{datasetId}/refreshes&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the bearer returned by authenticating with the service princilple account does not have access to this call.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to authenticate the service principle to access other areas of the API, or is there call I am missing in the admin API to get the data I'm after?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 11:44:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Service-Principle-API-Authentication-to-Dataset-Refresh/m-p/2265414#M33738</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-04T11:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Service Principle API Authentication to Dataset Refresh Endpoints</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Service-Principle-API-Authentication-to-Dataset-Refresh/m-p/2265921#M33744</link>
      <description>&lt;P&gt;Hey&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Try:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;https://api.powerbi.com/v1.0/myorg/admin/datasets/{datasetid}/refreshes&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 16:55:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Service-Principle-API-Authentication-to-Dataset-Refresh/m-p/2265921#M33744</guid>
      <dc:creator>Watsky</dc:creator>
      <dc:date>2022-01-04T16:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Service Principle API Authentication to Dataset Refresh Endpoints</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Service-Principle-API-Authentication-to-Dataset-Refresh/m-p/2265944#M33745</link>
      <description>&lt;P&gt;Amazing, thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 17:06:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Service-Principle-API-Authentication-to-Dataset-Refresh/m-p/2265944#M33745</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-04T17:06:50Z</dc:date>
    </item>
  </channel>
</rss>

