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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
CHAUHAN812
Frequent Visitor

Power BI Services Connections Authentication Credentials

In my Power BI Services, many connections are established through the On-premises data gateway, which uses my system's windows authentication for creating the connections. The On-premises data gateway is installed on an AWS Server, and I use my organization email ID to sign in.

 

Whenever I change my system password, I need to manually update my new passwords to all the established connections. I want to automate this process so that my password synchronizes with the Power BI services connections automatically.

 

How can we achieve this automation?

2 ACCEPTED SOLUTIONS
nilendraFabric
Super User
Super User

Hello @CHAUHAN812 

Recommended Best Practice is to 

Replace individual user credentials with a non-expiring service account specifically for Power BI gateway connections

 

Configure the gateway to use this account instead of personal credentials.
• Use tools like Azure Key Vault or Secret Server  to manage/rotate the service account password securely.

 

If a service account is not feasible, use the Power BI REST API to programmatically update credentials across all connections.

 

 

View solution in original post

Anonymous
Not applicable

Hi,nilendraFabric ,thanks for your concern about this issue.

Your answer is excellent!
And I would like to share some additional solutions below.


Hello,@CHAUHAN812 .I am glad to help you.

You can write code to automate the process of performing changes to the data source credentials of a gateway connection. (use the Rest API/PowerShell)

I hope that the following article will be helpful to you.
URL:
How to update credentials for an on-prem Power BI data source using PowerShell
This involves the process of getting the Gateway ID, DataSource ID, setting the type of authentication method, as well as Python programming, and the entire code design requires collaboration between you and the programmers on your team.
I also found an issue with the same requirement, and the user in the link also provided code that helped him.

URL:
Solved: Update Datasource Credential Using Only Powershell... - Microsoft Fabric Community
 
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi,nilendraFabric ,thanks for your concern about this issue.

Your answer is excellent!
And I would like to share some additional solutions below.


Hello,@CHAUHAN812 .I am glad to help you.

You can write code to automate the process of performing changes to the data source credentials of a gateway connection. (use the Rest API/PowerShell)

I hope that the following article will be helpful to you.
URL:
How to update credentials for an on-prem Power BI data source using PowerShell
This involves the process of getting the Gateway ID, DataSource ID, setting the type of authentication method, as well as Python programming, and the entire code design requires collaboration between you and the programmers on your team.
I also found an issue with the same requirement, and the user in the link also provided code that helped him.

URL:
Solved: Update Datasource Credential Using Only Powershell... - Microsoft Fabric Community
 
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Carson Jian,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

nilendraFabric
Super User
Super User

Hello @CHAUHAN812 

Recommended Best Practice is to 

Replace individual user credentials with a non-expiring service account specifically for Power BI gateway connections

 

Configure the gateway to use this account instead of personal credentials.
• Use tools like Azure Key Vault or Secret Server  to manage/rotate the service account password securely.

 

If a service account is not feasible, use the Power BI REST API to programmatically update credentials across all connections.

 

 

Thank You Nilendra for your solution of using service account instead of my personal credentials.

So in that case should I sign into the On premises gateway with the Service account as well along with the Power bi connections ?

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.