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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
caffineaddict19
Frequent Visitor

Best Approach for Calling REST API that requires client credential flow to enable scheduled refresh

Hi, 

 

I am looking for a way to perform an API call that requires client credential flow. My first approach is using the On-prem Gateway with a custom connector. The custom connector has the hardcoded client ID and client secret. This approach is not good enough sine we want to provide a generic custom connector to all of our clients. I want a way for the customer to store client ID and client secret from within PowerBI Service. My alternatives are using parameters or repurposing the user ID and password as client ID and secret. Any suggestions?

 

Edit: This is with the assumption that our clients will install their own On-prem gate way within their network. We will provide them the client credentials to consume our API. 

 

thank you

2 REPLIES 2
caffineaddict19
Frequent Visitor

I ended up relabeling windows authentication fields. Username to client id and Password to client secret. Is this a recommended practice to store client credentials in powerBI Service?

lbendlin
Super User
Super User

You will need to create a custom connector and then install the .mez on all gateway cluster members.

 

 

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

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

March Power BI Update Carousel

Power BI Community Update - March 2026

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