cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SFteam
New Member

Change master account login way to service principal

For the embed, our current technical connection from the website to PowerBI is through a master account (username + password). With the use and prefer of MFA, we want to change our code to a service principal way.
Unfortunately, there are no examples of php codes that we can use. Could someone possibly share some sample code with us?

Thanks!

3 REPLIES 3
SFteam
New Member

No example codes for PHP? It's really hard to get we see 🙂

Would be nice and helpfull please.

Thanks again!

RicoZhou
Community Support
Community Support

Hi @SFteam ,

 

I think you may refer to this offical blog to learn more details about how to embed for customer.

You can refer to below blog to get embedded sample application.

For reference:

Embed content in your Power BI embedded analytics application - Power BI | Microsoft Learn

You can refer to below blog to learn more details about how to configure service principal to authenticate.

For reference: Embed Power BI content in an embedded analytics application with service principal and an applicatio...

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Thanks for your reply. Actually we currently have a website running with authorization based on email address and password. That code already works. What should the code be for working with the service principal method.
This is just the question we have. Thanks again.

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.