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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Korlay37
Frequent Visitor

REST API cannot see gateways

Hello,

 

I have some on premise data gateways configured in app.powerbi.com, I have been trying to create an import flow for some users from an app by using only Power bi REST API, however, once the import a report to a group, my app (through REST API) needs to configure stuff like the gateway, refresh and all that. However I tried with all the "get gateways" endpoints I could try in the docs but no matter which one I use I cannot see any of the gateways I have set and I can see on app.powerbi.com. How can I see my gateways and configure them using the REST API?

FROM DATASETS:

FROM GATEWAYS

 

5 REPLIES 5
lbendlin
Super User
Super User

Are you admin of any of the gateways? What does the test of https://learn.microsoft.com/en-us/rest/api/power-bi/gateways/get-gateways return?

@lbendlin  well I think I am admin although I am not sure if should switch any setting, if I go to app.powerbi.com I do not see anything that seems like needs to be changed in the gateways for me to use them with the REST API.

 

The thest you mention returns a successful response but the value is an empty array:

Korlay37_0-1725546030014.png

 

That means you are not an admin on any of the gateways.

How do I set my app to be an admin of the gateways, in my app to generate a token I use a tenant id, an app id, an app secret. but withing app.powerbi.com I dont see any setting involving the gateways.

 No idea how that client id/ client secret authentication translates into a user or service principal that could then be added to the gateway admins.

 

You may need to pivot over to the "as admin"  APIs. Those may not require a user.

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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