<?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: Fabric REST API - List Data Pipelines - Unauthorized in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-REST-API-List-Data-Pipelines-Unauthorized/m-p/4634468#M7388</link>
    <description>&lt;P&gt;Thanks! I just wanted to double-check that I wasn't missing something before submitting a support ticket!&lt;/P&gt;</description>
    <pubDate>Wed, 02 Apr 2025 07:28:47 GMT</pubDate>
    <dc:creator>Acroustique</dc:creator>
    <dc:date>2025-04-02T07:28:47Z</dc:date>
    <item>
      <title>Fabric REST API - List Data Pipelines - Unauthorized</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-REST-API-List-Data-Pipelines-Unauthorized/m-p/4633078#M7383</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to get a list of pipelines using this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/fabric/datapipeline/items/list-data-pipelines?tabs=HTTP" target="_blank" rel="noopener"&gt;Items - List Data Pipelines - REST API (DataPipeline) | Microsoft Learn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the behaviour I have noticed:&lt;/P&gt;&lt;P&gt;Workspace contains pipelines -&amp;gt; Status 200 OK&lt;/P&gt;&lt;P&gt;Workspace does NOT contain pipelines -&amp;gt; Status 401 Unautorized&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Surely it should be 200 regardless of the content? Has anyone else noticed this? Is this a known issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 11:31:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-REST-API-List-Data-Pipelines-Unauthorized/m-p/4633078#M7383</guid>
      <dc:creator>Acroustique</dc:creator>
      <dc:date>2025-04-01T11:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric REST API - List Data Pipelines - Unauthorized</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-REST-API-List-Data-Pipelines-Unauthorized/m-p/4633238#M7384</link>
      <description>&lt;P&gt;Not the only inconsistency in the API responses.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a Pro license you can open a Pro ticket at &lt;A href="https://admin.powerplatform.microsoft.com/newsupportticket/powerbi" target="_blank"&gt;https://admin.powerplatform.microsoft.com/newsupportticket/powerbi&lt;/A&gt;&lt;BR /&gt;Otherwise you can raise an issue at &lt;A href="https://community.fabric.microsoft.com/t5/Issues/idb-p/Issues" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Issues/idb-p/Issues&lt;/A&gt; .&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 12:22:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-REST-API-List-Data-Pipelines-Unauthorized/m-p/4633238#M7384</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-04-01T12:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric REST API - List Data Pipelines - Unauthorized</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-REST-API-List-Data-Pipelines-Unauthorized/m-p/4634468#M7388</link>
      <description>&lt;P&gt;Thanks! I just wanted to double-check that I wasn't missing something before submitting a support ticket!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2025 07:28:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-REST-API-List-Data-Pipelines-Unauthorized/m-p/4634468#M7388</guid>
      <dc:creator>Acroustique</dc:creator>
      <dc:date>2025-04-02T07:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric REST API - List Data Pipelines - Unauthorized</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-REST-API-List-Data-Pipelines-Unauthorized/m-p/4635273#M7392</link>
      <description>&lt;P&gt;It turns out I got confused with what the service principal can and cannot access!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I first got a list of workspace ids using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;GET https://api.fabric.microsoft.com/v1/&lt;STRONG&gt;admin&lt;/STRONG&gt;/workspaces&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, I assumed I could get the list of pipelines within those workspaces using:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;GET https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/dataPipelines&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As it happens, the service principal had access to the workspaces containing pipelines but not the other ones (hence the confusion).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I know that I need to run an admin API call to get all pipelines from all workspaces (regardless of individual workspace permissions), such as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;GET https://api.fabric.microsoft.com/v1/admin/items?type=dataPipeline&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Documentation here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/fabric/admin/items/list-items" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/rest/api/fabric/admin/items/list-items&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2025 14:34:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Fabric-REST-API-List-Data-Pipelines-Unauthorized/m-p/4635273#M7392</guid>
      <dc:creator>Acroustique</dc:creator>
      <dc:date>2025-04-02T14:34:19Z</dc:date>
    </item>
  </channel>
</rss>

