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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.