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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
MylenePBI
Helper I
Helper I

PowerBI Rest API: BindToGatewayInGroup return Forbidden

Hello,

I use PowerBI rest API to copy a dataset from one workspace to another workspace.

The datasources of this dataset are from a custom connector installed on a gateway.

I use a service principal to perform all operations.

When I try to refresh my dataset, I can't, because I have an error message saying that the extension is not activated on the gateway.

When I try "GetGatewayDatasourcesInGroup", I have an error "Not found". "GetDatasourcesIngroup" returns an empty list. So I've tried "BindToGatewayInGroup", but I have a message "forbidden". 

My service principal has admin rights on the workspace, dataset, gateway, datasources. It has dataset.ReadAll, dataset.RealWriteAll, gateway.ReadAll and gateway.ReadWriteAll rights.

In the service, when I go to the workspace created, and choose "Take control", I can see the gateway and bind the datasources.

Any idea of what's happening, and how to fix it?

0 REPLIES 0

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.