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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
hhomann
New Member

Power BI embedded with user data

Hi,

 

I have a very basic question about Power BI - I am googling since hours but I do not get a clear solution, sorry. We are working on creating a Business Intelligence Solution for eCommerce sellers. Since I personally love Power BI, we are thinking about using Power BI embedded for the product we are going to publish. However, we are not sure if the following scenario is doable with Power BI

 

- we create dashboards and reports in Power BI desktop and embed these into our webapp.

- when users log in, they see and can work with the dashboards and reports we created, but based on THEIR data

 

The data structure is the same and the connection settings to the datasets are of course saved in our webapp, but is it actually possible to let Power BI connect to different data sets based on which user is currently logged in?

 

Thanks for your help!

Hendirk

1 ACCEPTED SOLUTION
ankitpatira
Community Champion
Community Champion

@hhomann You have not reached dead end as Power BI Embedded has additional APIs to change the server and database that your dataset is pointing to and set a service account credential that the dataset will use to connect to your database. See this link and image below. So you can publish pbix file to your azure workspace and using this APIs programatically change dataset connection string.

 

Capture.PNG

 

 

View solution in original post

4 REPLIES 4
Eric_Zhang
Microsoft Employee
Microsoft Employee


@hhomann wrote:

Hi,

 

I have a very basic question about Power BI - I am googling since hours but I do not get a clear solution, sorry. We are working on creating a Business Intelligence Solution for eCommerce sellers. Since I personally love Power BI, we are thinking about using Power BI embedded for the product we are going to publish. However, we are not sure if the following scenario is doable with Power BI

 

- we create dashboards and reports in Power BI desktop and embed these into our webapp.

- when users log in, they see and can work with the dashboards and reports we created, but based on THEIR data

 

The data structure is the same and the connection settings to the datasets are of course saved in our webapp, but is it actually possible to let Power BI connect to different data sets based on which user is currently logged in?

 

Thanks for your help!

Hendirk


 

If you could gathering the data into one dataset, you can consider Row level security with Power BI Embedded.

 

  • Row level security (RLS) can be used to restrict user access to particular data within a report or dataset, allowing for multiple different users to use the same report while all seeing different data. Power BI Embedded now supports datasets configured with RLS
ankitpatira
Community Champion
Community Champion

@hhomann You have not reached dead end as Power BI Embedded has additional APIs to change the server and database that your dataset is pointing to and set a service account credential that the dataset will use to connect to your database. See this link and image below. So you can publish pbix file to your azure workspace and using this APIs programatically change dataset connection string.

 

Capture.PNG

 

 

@ankitpatira thanks a lot for that link! I am checking it with my developer. Is this actually usable with a PHP based framework or only with asp.net?

@hhomann

It is not language specific, as long as Calling Rest API is supported.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.