<?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 Cannot retrieve Contacts from API in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-retrieve-Contacts-from-API/m-p/5147708#M64870</link>
    <description>&lt;P&gt;I have the following code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stephan__0-1776086008756.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1333363i7273BDC5758A9B55/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stephan__0-1776086008756.png" alt="stephan__0-1776086008756.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;(With url and url2 I get the exact same error). The SPN I am using is Power BI Admin, has Tenant.ReadWrite.All, Report.Read.All &amp;amp; Workspace.Read.All. Its role also has permissions on the "Service principals can access read-only Admin APIs" setting in Power BI Tenant Settings. And this works for almost all APIs, but not this one. Is there something else I should do to get this API to work? Or does this API only work with user accounts and not SPNs?&lt;/P&gt;</description>
    <pubDate>Mon, 13 Apr 2026 13:18:11 GMT</pubDate>
    <dc:creator>stephan_</dc:creator>
    <dc:date>2026-04-13T13:18:11Z</dc:date>
    <item>
      <title>Cannot retrieve Contacts from API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-retrieve-Contacts-from-API/m-p/5147708#M64870</link>
      <description>&lt;P&gt;I have the following code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stephan__0-1776086008756.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1333363i7273BDC5758A9B55/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stephan__0-1776086008756.png" alt="stephan__0-1776086008756.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;(With url and url2 I get the exact same error). The SPN I am using is Power BI Admin, has Tenant.ReadWrite.All, Report.Read.All &amp;amp; Workspace.Read.All. Its role also has permissions on the "Service principals can access read-only Admin APIs" setting in Power BI Tenant Settings. And this works for almost all APIs, but not this one. Is there something else I should do to get this API to work? Or does this API only work with user accounts and not SPNs?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2026 13:18:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-retrieve-Contacts-from-API/m-p/5147708#M64870</guid>
      <dc:creator>stephan_</dc:creator>
      <dc:date>2026-04-13T13:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot retrieve Contacts from API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-retrieve-Contacts-from-API/m-p/5147799#M64871</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1578583"&gt;@stephan_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;P&gt;I am not completely certain, but based on the 403 error and the message “API is not accessible for application”, this behaviour is expected for this specific endpoint.&lt;/P&gt;
&lt;P&gt;The endpoint&lt;BR /&gt;GET /v1.0/myorg/reports/{reportId}/contacts&lt;BR /&gt;does not support application-only authentication (service principal / client credentials). It requires a delegated user context, meaning it works only when authenticated with a user account and not with a service principal.&lt;/P&gt;
&lt;P&gt;This is not a missing permission issue. Even with permissions such as Tenant.ReadWrite.All, Report.Read.All, and Workspace.Read.All, the endpoint remains inaccessible because it is not designed to work with application tokens. The error message clearly indicates that the API is restricted to user-based authentication.&lt;/P&gt;
&lt;P&gt;In addition, Microsoft has not published an official Power BI REST API to retrieve the report contact list configured in the Power BI Service user interface. This confirms that the endpoint is either internal or UI-related and therefore unsuitable for automation with service principals.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;P&gt;Recommended Alternatives&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;Governance and access control&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;Use Admin APIs such as Get Report Users as Admin or tenant scan endpoints.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;These APIs are supported with service principals and provide information about who has access to reports, which is usually sufficient for governance and ownership tracking.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Operational workaround&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;Maintain report contact ownership in an external metadata store (for example, SharePoint, Dataverse, or SQL).&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Populate this store using supported REST APIs (such as listing reports per workspace) and manage contacts as governed metadata rather than relying on the UI contact list.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 13 Apr 2026 15:16:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-retrieve-Contacts-from-API/m-p/5147799#M64871</guid>
      <dc:creator>Zanqueta</dc:creator>
      <dc:date>2026-04-13T15:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot retrieve Contacts from API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-retrieve-Contacts-from-API/m-p/5148016#M64874</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1578583"&gt;@stephan_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I could not find this endpoint in power bi api documentation or in fabric api documentation&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;GET /v1.0/myorg/reports/{reportId}/contacts&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;From the screenshot you shared I believe you found this API in network traces. Please correct me if I am wrong.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I believe you are trying to extract the report contacts by running this API call. Its hard to identify the supported authentication mechanisms for the APIs which are not exposed by Microsoft in their docuementation.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I also checked the GetReportUsersAsAdmin and GetReportsAsAdmin API none of these APIs expose "report contact" details. If you check this recent thread, in that Community team has confirmed that this detail is not exposed in any API&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Service/Owner-Contact-Field-on-reports/m-p/4927085" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Service/Owner-Contact-Field-on-reports/m-p/4927085&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can post this idea in Fabric ideas forum&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Fabric-Ideas/idb-p/fbc_ideas" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Fabric-Ideas/idb-p/fbc_ideas&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Connect on &lt;A href="https://www.linkedin.com/in/tharun-kumar-ravikrindhi/" target="_blank" rel="noopener"&gt;LinkedIn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;read my blogs here: techietips.co.in&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class=""&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV class=""&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV style="border-radius: 1px; padding: 10px; border: solid #cccccc 1px; background: #fafafa no-repeat right 10px center;"&gt;&lt;BR /&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;STRONG style="margin-right: 3px;"&gt;&lt;STRONG style="margin-right: 3px;"&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;STRONG style="margin-right: 3px;"&gt;&lt;STRONG style="margin-right: 3px;"&gt;If I helped you, click on the Thumbs Up to give Kudos.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;BR /&gt;
&lt;P style="padding: 0; margin: 5px 50px 0 0;"&gt;Proud to be a Super User!&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PBI_SuperUser_Rank@2x.png" style="width: 70px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1107700iD5193F780866AA58/image-size/large?v=v2&amp;amp;px=999" width="70" role="button" title="PBI_SuperUser_Rank@2x.png" alt="PBI_SuperUser_Rank@2x.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Apr 2026 03:25:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-retrieve-Contacts-from-API/m-p/5148016#M64874</guid>
      <dc:creator>tharunkumarRTK</dc:creator>
      <dc:date>2026-04-14T03:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot retrieve Contacts from API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-retrieve-Contacts-from-API/m-p/5148808#M64883</link>
      <description>&lt;P&gt;I found the URL by modifying the URL found in this StackOverflow post:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/76102839/powerbi-api-getting-all-reports-contact-owner-i-can-only-see-the-infos-or-wo#:~:text=I%20was%20able%20to%20get,reportId/contacts%22%20-Method%20Get" target="_blank"&gt;https://stackoverflow.com/questions/76102839/powerbi-api-getting-all-reports-contact-owner-i-can-only-see-the-infos-or-wo#:~:text=I%20was%20able%20to%20get,reportId/contacts%22%20-Method%20Get&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2026 08:32:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-retrieve-Contacts-from-API/m-p/5148808#M64883</guid>
      <dc:creator>stephan_</dc:creator>
      <dc:date>2026-04-15T08:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot retrieve Contacts from API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-retrieve-Contacts-from-API/m-p/5148811#M64884</link>
      <description>&lt;P&gt;I found the URL by modifying the URL found in this StackOverflow post:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/76102839/powerbi-api-getting-all-reports-contact-owner-i-can-only-see-the-infos-or-wo#:~:text=I%20was%20able%20to%20get,reportId/contacts%22%20-Method%20Get" target="_blank"&gt;https://stackoverflow.com/questions/76102839/powerbi-api-getting-all-reports-contact-owner-i-can-only-see-the-infos-or-wo#:~:text=I%20was%20able%20to%20get,reportId/contacts%22%20-Method%20Get&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think Microsoft changed this API to make it not accessible by SPNs. Very disappointing they do not provide a way to retrieve Workspace / Report contacts&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2026 08:33:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-retrieve-Contacts-from-API/m-p/5148811#M64884</guid>
      <dc:creator>stephan_</dc:creator>
      <dc:date>2026-04-15T08:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot retrieve Contacts from API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cannot-retrieve-Contacts-from-API/m-p/5151037#M64896</link>
      <description>&lt;P data-start="58" data-end="112"&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1578583"&gt;@stephan_&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P data-start="58" data-end="112"&gt;&lt;BR /&gt;Thanks for sharing the reference and your observation.&lt;/P&gt;
&lt;P data-start="114" data-end="431"&gt;I understand why this feels like a change in behavior. Based on what you’re seeing, it does appear that access to this endpoint using service principals may be restricted now. Since this isn’t a documented Power BI REST API, its behavior can change, which could explain why it might have worked earlier in some cases.&lt;/P&gt;
&lt;P data-start="114" data-end="431"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="433" data-end="550"&gt;At the moment, there doesn’t seem to be a supported way to retrieve the report or workspace contact details via SPNs.&lt;/P&gt;
&lt;P data-start="433" data-end="550"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="552" data-end="689"&gt;If this is something critical for your scenario and as already suggested by &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/685422"&gt;@tharunkumarRTK&lt;/a&gt;&amp;nbsp;you may consider sharing it in the &lt;A href="https://community.fabric.microsoft.com/t5/Fabric-Ideas/idb-p/fbc_ideas" target="_self"&gt;Fabric Ideas forum&lt;/A&gt; so the product team can review it.&lt;/P&gt;
&lt;P data-start="552" data-end="689"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="552" data-end="689"&gt;Please reach out for further assistance.&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2026 09:54:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cannot-retrieve-Contacts-from-API/m-p/5151037#M64896</guid>
      <dc:creator>v-veshwara-msft</dc:creator>
      <dc:date>2026-04-16T09:54:12Z</dc:date>
    </item>
  </channel>
</rss>

