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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.