<?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: Power Bi Rest Api App Endpoints in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-Bi-Rest-Api-App-Endpoints/m-p/4273047#M58179</link>
    <description>&lt;P&gt;That's not something you do with the app.&amp;nbsp; You need to call the Group/Workspace endpoint for that.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Nov 2024 21:24:40 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-11-06T21:24:40Z</dc:date>
    <item>
      <title>Power Bi Rest Api App Endpoints</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-Bi-Rest-Api-App-Endpoints/m-p/4272847#M58170</link>
      <description>&lt;P&gt;I am trying to interact with an App on a workspace using a service principal. The documentation states that service principals are not allowed.&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/apps/get-reports" target="_blank"&gt;https://learn.microsoft.com/en-us/rest/api/power-bi/apps/get-reports&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I have two questions:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Why is this the case?&lt;/LI&gt;&lt;LI&gt;What is the recommended path querying a power bi app from a back end process?&lt;OL&gt;&lt;LI&gt;Creating of a "service user" and getting a token via username password? This seems like a bad idea because we need to add, update or remove reports from the app to present to users. The "service user" will need admin rights.&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Wed, 06 Nov 2024 17:43:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-Bi-Rest-Api-App-Endpoints/m-p/4272847#M58170</guid>
      <dc:creator>jmoore11</dc:creator>
      <dc:date>2024-11-06T17:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Power Bi Rest Api App Endpoints</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-Bi-Rest-Api-App-Endpoints/m-p/4272999#M58176</link>
      <description>&lt;LI-CODE lang="markup"&gt;I am trying to interact with an App on a workspace using a service principal.&lt;/LI-CODE&gt;
&lt;P&gt;Interact how? For what purpose?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 20:30:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-Bi-Rest-Api-App-Endpoints/m-p/4272999#M58176</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-11-06T20:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Power Bi Rest Api App Endpoints</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-Bi-Rest-Api-App-Endpoints/m-p/4273038#M58178</link>
      <description>&lt;P&gt;I want to use the power bi rest api to query the app to get the lists of reports. I would like to not use a username and password to retrieve a token to do this.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 21:02:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-Bi-Rest-Api-App-Endpoints/m-p/4273038#M58178</guid>
      <dc:creator>jmoore11</dc:creator>
      <dc:date>2024-11-06T21:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Power Bi Rest Api App Endpoints</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-Bi-Rest-Api-App-Endpoints/m-p/4273047#M58179</link>
      <description>&lt;P&gt;That's not something you do with the app.&amp;nbsp; You need to call the Group/Workspace endpoint for that.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2024 21:24:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-Bi-Rest-Api-App-Endpoints/m-p/4273047#M58179</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-11-06T21:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Power Bi Rest Api App Endpoints</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-Bi-Rest-Api-App-Endpoints/m-p/4274092#M58193</link>
      <description>&lt;P&gt;I understand that and we do that for other use cases. However, this use case is to only get reports that are associated to an app. I'd also like to leverage a service principal to call the api endpoint.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I understand this functionality is not allowed and I am very interested to know why. As I said before, people are assigning an admin user to the app and using their credentials to retreive information about the app. That seems like a very bad practice and I am curious to know why this is the accepted route.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 13:19:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-Bi-Rest-Api-App-Endpoints/m-p/4274092#M58193</guid>
      <dc:creator>jmoore11</dc:creator>
      <dc:date>2024-11-07T13:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Power Bi Rest Api App Endpoints</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-Bi-Rest-Api-App-Endpoints/m-p/4274144#M58194</link>
      <description>&lt;P&gt;I am of the opposite opinion. I consider service principals to be "very bad practice"&amp;nbsp; as you completely lose the auditability. You will have no idea who to yell at when things go pear shaped.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 13:44:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-Bi-Rest-Api-App-Endpoints/m-p/4274144#M58194</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-11-07T13:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Power Bi Rest Api App Endpoints</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-Bi-Rest-Api-App-Endpoints/m-p/4274163#M58195</link>
      <description>&lt;P&gt;The service principal is merely polling from an app. There is nothing that could go pear shaped because the only authorization bit you can assign is read access to a service principal. Users, who are viewing the app's reports in a different form on a website, have their own RLS, permissions, and identity management with auditing invovled. I am not interested in leaking a credential that could risk PHI loss.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I'm trying to understand why a service principal cannot access a domain's endpoints. I have found,&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;A href="https://ideas.fabric.microsoft.com/ideas/idea/?ideaid=7f91faef-43f4-45b4-bbb6-80ca1fd8a627" target="_blank" rel="noopener"&gt;https://ideas.fabric.microsoft.com/ideas/idea/?ideaid=7f91faef-43f4-45b4-bbb6-80ca1fd8a627&lt;/A&gt;, which means we cannot embed the app. Our options are pretty limited unless we forgo the app and create something custom on our end, to forgo a service principal, which goes against a lot of the domains on the power bi rest api.&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 Nov 2024 14:26:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-Bi-Rest-Api-App-Endpoints/m-p/4274163#M58195</guid>
      <dc:creator>jmoore11</dc:creator>
      <dc:date>2024-11-07T14:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Power Bi Rest Api App Endpoints</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-Bi-Rest-Api-App-Endpoints/m-p/4287733#M58304</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/694782"&gt;@jmoore11&lt;/a&gt;&amp;nbsp;, If you have access to fabric trial / fabric capacity and an admin user. You can run this piece of code in your fabric notebook and store it in a lakehouse and further clean the data to get the list of reports mapped to their respective apps.&lt;/P&gt;&lt;P&gt;No Service principal is needed and credentials are not exposed in this approach but the user who is running this code should be a Power BI Admin . The App ID will be present in web url column of the json response. I have used sempy library which is an official library released by Microsoft&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import sempy.fabric as fabric

client = fabric.FabricRestClient()
reports_url = "v1.0/myorg/admin/reports?$top=5000"
reports_json = client.get(reports_url).json()

apps_url = "v1.0/myorg/admin/apps?$top=5000"
apps_json = client.get(apps_url).json()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jai&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.linkedin.com/in/jaikeerthivelan/" target="_self"&gt;Linkedin&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Nov 2024 19:17:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-Bi-Rest-Api-App-Endpoints/m-p/4287733#M58304</guid>
      <dc:creator>Jai-Rathinavel</dc:creator>
      <dc:date>2024-11-17T19:17:00Z</dc:date>
    </item>
  </channel>
</rss>

