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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
varuos
New Member

Power BI REST API calls - without storing ones username/password in the .pbix file

Hi All,

 

I have been trying to explore Power BI REST APIs recently. 

I want to call the Power BI REST APIs to gather organizational Power BI usage and other metrics.

 

Some of the blogs and YouTube videos I have come across, all show the following steps -

 

Step-1: Register an app in Azure AD

Step-2: Grant API Permission to the app

Step-3: Use Postman to generate a refreshable acces token

 

On Step-3, I see everyone is passing their username/password to make the call to REST API and to fetch the token.

That username/passoword lives inside the .pbix file and that's not the security best practice.

 

Do you have any suggestion or point me to a direction where I don't store the username/passowrd in the .pbix file.

Is there a better approach to achive this?

 

Thank You!

1 REPLY 1
lbendlin
Super User
Super User

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.