<?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 How to make the service principle the owner of power bi dataset to update the parameter  using API in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-make-the-service-principle-the-owner-of-power-bi-dataset/m-p/4264408#M4919</link>
    <description>&lt;P&gt;I have a power bi dataset in my fabric workspace and I need to update the parameter in that using update parameter API using service principle.And then need to refresh the dataset from notebook .But when I tried that I got a message that "&lt;STRONG&gt;only dataset owner can edit the dataset&lt;/STRONG&gt;".How to make service principle as the owner of the dataset inorder to make this request or what are the permissions required to implement this from a note book?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used the following API Call:&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;POST https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/Default.UpdateParameters&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Oct 2024 18:04:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-10-30T18:04:38Z</dc:date>
    <item>
      <title>How to make the service principle the owner of power bi dataset to update the parameter  using API</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-make-the-service-principle-the-owner-of-power-bi-dataset/m-p/4264408#M4919</link>
      <description>&lt;P&gt;I have a power bi dataset in my fabric workspace and I need to update the parameter in that using update parameter API using service principle.And then need to refresh the dataset from notebook .But when I tried that I got a message that "&lt;STRONG&gt;only dataset owner can edit the dataset&lt;/STRONG&gt;".How to make service principle as the owner of the dataset inorder to make this request or what are the permissions required to implement this from a note book?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used the following API Call:&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;POST https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/Default.UpdateParameters&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 18:04:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-make-the-service-principle-the-owner-of-power-bi-dataset/m-p/4264408#M4919</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-30T18:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the service principle the owner of power bi dataset to update the parameter  using A</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-make-the-service-principle-the-owner-of-power-bi-dataset/m-p/4264521#M4927</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&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;There is a takeOver API call:&lt;/P&gt;
&lt;PRE class=""&gt;POST https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/Default.TakeOver&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/take-over-in-group" target="_blank" rel="noopener"&gt;Datasets - Take Over In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here an article that uses this as part of a Powershell script:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.tackytech.blog/how-to-make-a-service-principal-the-owner-of-a-power-bi-dataset/" target="_blank" rel="noopener"&gt;https://www.tackytech.blog/how-to-make-a-service-principal-the-owner-of-a-power-bi-dataset/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course, you could fire this API from a Python script, too.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;/Tom&lt;BR /&gt;&lt;A href="https://www.tackytech.blog/" target="_blank" rel="noopener"&gt;https://www.tackytech.blog/&lt;BR /&gt;&lt;/A&gt;&lt;A href="https://www.instagram.com/tackytechtom/" target="_blank" rel="noopener"&gt;https://www.instagram.com/tackytechtom/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;@Anonymous&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 21:21:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/How-to-make-the-service-principle-the-owner-of-power-bi-dataset/m-p/4264521#M4927</guid>
      <dc:creator>tackytechtom</dc:creator>
      <dc:date>2024-10-30T21:21:44Z</dc:date>
    </item>
  </channel>
</rss>

