Forum Discussion
Embedding Dashboard with Service Principal getting 403 Error
We are encountering an access issue while trying to embed a Power BI dashboard using a service principal. We are making a request to the following API endpoint:
This API successfully returns the embedUrl. However, when attempting to access the embedUrl, we receive a 403 Forbidden error.
Steps Taken:
Service Principal Configuration:
- The service principal has been added as a member to the workspace.
- The necessary API permissions have been granted in Azure AD:
- ✅ Dashboard.ReadWrite.All
- ✅ Dashboard.Read.All
- Admin consent has been provided for these permissions.
Troubleshooting Attempts:
- Verified that the service principal is correctly assigned to the workspace.
- Confirmed that the Power BI tenant settings allow service principals to use Power BI APIs.
- Regenerated the authentication token and verified that the required scopes are included.
- Ensured that the request is using a valid access token with the correct authorization headers.
Request for Assistance:
Could you please confirm if additional permissions or configurations are required to access the embedUrl successfully? Additionally, are there any specific Power BI security policies that could be blocking access?
Your guidance on resolving this issue would be highly appreciated.
Thanks
Ashwini
Please confirm that you really want to embed a Dashboard. What is the expected user experience?
Embedding is usually done with reports.
- ashwinir1 year agoNew Member
Hi lbendlin ,
Thanks for your reply.
Yes, we are working on embedding the Power BI dashboard to display it in the frontend UI of our React application for an improved user experience.
Thanks,
Ashwini
- ashwinir1 year agoNew Member
we are following with this documentation.
- lbendlin1 year agoSuper User
If you have a Pro license you can open a Pro ticket at https://admin.powerplatform.microsoft.com/newsupportticket/powerbi
Otherwise you can raise an issue at https://community.fabric.microsoft.com/t5/Issues/idb-p/Issues .