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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher 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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.