Nov 09, 2019 12:21 PM|PatriceSc|LINK
This is for 3rd party users? I used https://docs.microsoft.com/en-us/power-bi/developer/embed-sample-for-customers and you can have a look at the code found at https://github.com/microsoft/PowerBI-Developer-Samples/blob/master/App%20Owns%20Data/PowerBIEmbedded_AppOwnsData/Services/EmbedService.cs
Edit: go one step at a time. All is there but you have many details to get right to make this work (in particular to register the app with the dedicated portal and to enable "Service Principals" on the PowerBI side.