<?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: Gateways and Datasources with Service Principal Profile in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Gateways-and-Datasources-with-Service-Principal-Profile/m-p/2514425#M36096</link>
    <description>&lt;P&gt;Gateway data sources are consumed by developer personas. The regular report users do not need to know about that setup at all. Are you saying that your service principal is a developer?&lt;/P&gt;</description>
    <pubDate>Fri, 13 May 2022 19:21:45 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2022-05-13T19:21:45Z</dc:date>
    <item>
      <title>Gateways and Datasources with Service Principal Profile</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Gateways-and-Datasources-with-Service-Principal-Profile/m-p/2511186#M36068</link>
      <description>&lt;P&gt;How do I give my service principal profile access to a gateway datasource?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I'm currently trying to call &lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/gateways/add-datasource-user" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/gateways/add-datasource-user&lt;/A&gt; with gatewayid, datasourceid, identifier (service principal app id) and profile (service principal profile).&lt;BR /&gt;&lt;BR /&gt;The API call is authenticated using the service principal in question. (not the profile)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The service principal is member of an AD security group that is "Admin" for the gateway, and "Owner" for the datasource.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The API call results in an "Unathourized" response.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 16:51:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Gateways-and-Datasources-with-Service-Principal-Profile/m-p/2511186#M36068</guid>
      <dc:creator>Qondor_AM</dc:creator>
      <dc:date>2022-05-12T16:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Gateways and Datasources with Service Principal Profile</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Gateways-and-Datasources-with-Service-Principal-Profile/m-p/2514425#M36096</link>
      <description>&lt;P&gt;Gateway data sources are consumed by developer personas. The regular report users do not need to know about that setup at all. Are you saying that your service principal is a developer?&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 19:21:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Gateways-and-Datasources-with-Service-Principal-Profile/m-p/2514425#M36096</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-05-13T19:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Gateways and Datasources with Service Principal Profile</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Gateways-and-Datasources-with-Service-Principal-Profile/m-p/2518513#M36135</link>
      <description>&lt;P&gt;Problem was solved by sending the correct object id as "identifier" to the API. Ref &lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/embedded/embedded-troubleshoot#what-is-the-difference-between-application-object-id-and-principal-object-id" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/developer/embedded/embedded-troubleshoot#what-is-the-difference-between-application-object-id-and-principal-object-id&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 19:00:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Gateways-and-Datasources-with-Service-Principal-Profile/m-p/2518513#M36135</guid>
      <dc:creator>Qondor_AM</dc:creator>
      <dc:date>2022-05-16T19:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Gateways and Datasources with Service Principal Profile</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Gateways-and-Datasources-with-Service-Principal-Profile/m-p/4693878#M61205</link>
      <description>&lt;P&gt;Thanks, this was useful, I will only add this in case someone else needs it. The correct payload for a service principal profile is the one below:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "datasourceAccessRight": "Read",
  "identifier": "{{Object ID}}", //fix, this is the enterprise application
  "principalType":"App", //enterprise application
  "profile": {
    "id": "{{Service Principal Profile ID}}",
    "displayName": "{{Service Principal Profile Name}}" //this is optional.
  }
  
}&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 15 May 2025 09:44:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Gateways-and-Datasources-with-Service-Principal-Profile/m-p/4693878#M61205</guid>
      <dc:creator>BIBB</dc:creator>
      <dc:date>2025-05-15T09:44:16Z</dc:date>
    </item>
  </channel>
</rss>

