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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
SteveH81
New Member

Can't Fix Power BI Embedded Issue After User Migration

Hi,

 

We've just had to do some azure tenancy work.  And now my PowerBI embedded solution isn't working.

 

Everything was working great.  But had to create a new user for publishing the reports.  I've published the reports.  I've linked the on site gateway to the new user.  I've assigned access to the app and the serivce principal to the data connections, data sources and the new work space.  I've updated the workspace, report and dataset ids in my app.

 

All is working until I try to embed the report, which requires me to change ownership of the dataset, to the service principal so I can parameterise the query.  At which point it breaks...

 

So the liniage changes from this when I publish, and my publishing owner owns the report:

 

SteveH81_0-1684925589319.png

To this, once I've tried to embed it and the service principal has taken owner ship.

 

SteveH81_1-1684925634633.png

 

Like i said, this was all working wonderfully... I've been through all the tutorial again, looking for permissions e.t.c. that I've missed.

 

Any suggestions on what I've overlooked?

 

Kind Regards,

 

Steve H

1 ACCEPTED SOLUTION
SteveH81
New Member

So I had to drill into the API for service principal, but I discovered that my service principal had access to an orphaned data gateway.  I've looked and can't find it anywhere in the power bi website.  

 

So I had to call Datasets.BindToGateway to specify which of the available gateways to use.  Where before I only had one, I now have more, so must explicitly set it.

View solution in original post

1 REPLY 1
SteveH81
New Member

So I had to drill into the API for service principal, but I discovered that my service principal had access to an orphaned data gateway.  I've looked and can't find it anywhere in the power bi website.  

 

So I had to call Datasets.BindToGateway to specify which of the available gateways to use.  Where before I only had one, I now have more, so must explicitly set it.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.