Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

How to make the service principle the owner of power bi dataset to update the parameter using API

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 "only dataset owner can edit the dataset".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?

 

I have used the following API Call:

POST https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/Default.UpdateParameters

 

1 ACCEPTED SOLUTION
tackytechtom
Super User
Super User

Hi @Anonymous, 

 

 

There is a takeOver API call:

POST https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/Default.TakeOver

 

Datasets - Take Over In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn

 

Here an article that uses this as part of a Powershell script:

https://www.tackytech.blog/how-to-make-a-service-principal-the-owner-of-a-power-bi-dataset/

 

Of course, you could fire this API from a Python script, too.

 

Let me know if this helps 🙂

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/

@Anonymous



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

View solution in original post

1 REPLY 1
tackytechtom
Super User
Super User

Hi @Anonymous, 

 

 

There is a takeOver API call:

POST https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets/{datasetId}/Default.TakeOver

 

Datasets - Take Over In Group - REST API (Power BI Power BI REST APIs) | Microsoft Learn

 

Here an article that uses this as part of a Powershell script:

https://www.tackytech.blog/how-to-make-a-service-principal-the-owner-of-a-power-bi-dataset/

 

Of course, you could fire this API from a Python script, too.

 

Let me know if this helps 🙂

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/

@Anonymous



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Fabric Update Carousel

Fabric Monthly Update - September 2025

Check out the September 2025 Fabric update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors