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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
mbrummerstedt
Regular Visitor

How to use dynamic username for postgresql database connection in power bi based on user?

am using Power BI with cube.js as the data source. The connection to Cube is set up using the PostgreSQL connector in Power BI.

I am trying to figure out, how I can change the username, which is being used for the data source connection based on the user who accesses the data in the Power BI service.

The reason is, this allows us the change the security settings dynamically in Cube for each Power BI user.

How can I pass the user email as the username in basic auth for the PostgreSQL connector in Power BI?

0 REPLIES 0

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.