Forum Discussion
Power BI for clients on website
- Anonymous4 years ago
Hi Samo685 ,
According to your statement, I know you want to learn how to embed for customer. I think the offical blog has show you step-by-step.
Firstly you need to create a workspace and publish reports which you want to embed to the workspace. Then you can set your embedding.
1. You need to select your authentication method.
Service principal or Master user. There are many differences between them in register, parameter and other steps.
2. Register an Azure AD application
Master user: You need to assign API Permission when you register app.
For reference: Master User —— Register an Azure AD application
Service principal: Register an app, create a security group and add this app as a member/admin in this security group. Then turn on "Allow all service principal to use Power BI APIs" in Tenant setting and add this group in it. Add Service principal app as a member in the workspace with the report you want to embed.
For reference: Service principal —— Register an Azure AD application
Note: If you use Master User as authentication method, you don't need to turn on "Allow all service principal to use Power BI APIs" in Tenant setting, your master user accont needs to be a member or admin of this workspace.
3. Get the embedding parameter values
As above introduction, you will need to get differenct Parameter for different authentication method.
You can download the developer sample to have a test by visual studio. For reference: PowerBI-Developer-Samples
If you configure all steps correctly, it will work.
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Samo685 ,
According to your statement, I know you want to learn how to embed for customer. I think the offical blog has show you step-by-step.
Firstly you need to create a workspace and publish reports which you want to embed to the workspace. Then you can set your embedding.
1. You need to select your authentication method.
Service principal or Master user. There are many differences between them in register, parameter and other steps.
2. Register an Azure AD application
Master user: You need to assign API Permission when you register app.
For reference: Master User —— Register an Azure AD application
Service principal: Register an app, create a security group and add this app as a member/admin in this security group. Then turn on "Allow all service principal to use Power BI APIs" in Tenant setting and add this group in it. Add Service principal app as a member in the workspace with the report you want to embed.
For reference: Service principal —— Register an Azure AD application
Note: If you use Master User as authentication method, you don't need to turn on "Allow all service principal to use Power BI APIs" in Tenant setting, your master user accont needs to be a member or admin of this workspace.
3. Get the embedding parameter values
As above introduction, you will need to get differenct Parameter for different authentication method.
You can download the developer sample to have a test by visual studio. For reference: PowerBI-Developer-Samples
If you configure all steps correctly, it will work.
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.