Forum Discussion
Embedding Dashboard with Service Principal getting 403 Error
ome of these data sources have Effective Identity enabled,
How are you presenting yourself to these data sources? Can't use the service principal for that, so you would need to have a user mapping table for each?
- Anonymous1 year agoNot applicable
lbendlin Can you please elaborate or point me to a resource which mentions that data sources with EI enabled cannot be used with Service Principal.
- ashwinir1 year agoNew Member
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
- lbendlin1 year agoSuper User
Please confirm that you really want to embed a Dashboard. What is the expected user experience?
Embedding is usually done with reports.