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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
rockcliff15
Frequent Visitor

Rename DataFlow using REST API - You do not have permissions

Hi

 

I am happilly using the Power BI REST APIs for pulling information about dataflows and triggering refreshes. I am doing this using a service principal which has appropriate permissions to the tenant and the workspaces.

 

I would like to use the update data flow API so I can programmatically rename dataflows, however when I do this by making an API call I receive the error "You do not have permissions to manage this dataflow". 

 

I assume this is because the service principal is not the owner of the Dataflow and as a result cannot rename it. Is there an API call I can make to "take over" the dataflow and make the service principal the owner so I can rename it?

 

Thanks

3 REPLIES 3
v-lionel-msft
Community Support
Community Support

Hi @rockcliff15 ,

 

"Is there an API call I can make to "take over" the dataflow and make the service principal the owner so I can rename it?"

 

Dataflows (Power BI Power BI REST APIs) | Microsoft Docs

I did not find such a Rest API that allows you to change the owner, even if such an API exists, you will be required to have Dataflow.ReadWrite.All😂.

You should obtain the required permissions first.

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

lbendlin
Super User
Super User

When you registered your app did you ask for Dataflow.ReadWrite.All permissions?

Yes I have registered the app with Dataflow.ReadWrite.All permissions but still receive error.

 

Interestingly if i remove this permission I can still read the data from the dataflow.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI 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.