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
vpshamsbi
Frequent Visitor

How Secure is credentials stiored in Power query for API POST requests

Hi,

We are using an API as data source for PBI. The API uses POST method to authenticate with username and password in the body of the initial request, which retrieves a token. The token is then used in the header of subsequent API calls to get data (again using GET).

 

How secure is this approach as credentials are hardcoded.

Could you recomend any solutions on how to better handle these credentials ?

 

Thanks

3 REPLIES 3
lbendlin
Super User
Super User

store your credentials in a file on a sharepoint with very limited access.  Then use that file data source as an expression in your Power Query.

Thanks. Could you please elaborate on this, even if the file kept on sharePoint, once loaded in to Power BI, data (credentials) will sit in the model , it will not be encrypted right as?

No, if you load it as an expression (rather than a partition) it will not be stored in the Power BI model.

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.

Top Solution Authors