Forum Discussion
Embedded tool authentication error
I'm using the Power BI onboarding Embed tool (https://app.powerbi.com/embedsetup/appownsdata) and the sample code. When I try to access the Power BI report I get the message below (Unauthorized 401). The user credentials used in the code is an Admin of the Workspace. I have removed mutli-factor authentifcation from the user. Any ideas how to resolve this? Thank you.
Error
Status: Unauthorized (401)
Response:
RequestId: 7ba996d8-5b40-4103-9676-c150d5e8e959
11 Replies
- JayendranSolution Sage
Hi Anonymous ,
Please cross check the task to perform from
See some similar solutions
https://stackoverflow.com/questions/49491759/unauthorized-error-401-for-power-reports-embedding
See this troubleshotting guide
https://docs.microsoft.com/en-us/power-bi/developer/embedded-troubleshoot#api-call-returning-401
- AnonymousNot applicable
Hi Jayendran .
Thank you for the suggestions.
I have tried registering the app and I get the following message. I have tried adding the parameter client secret under the line for key applicationID. I've tried adding it as key client_secret, clientsecret and applicationSecret but all return the same error.
Error
AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'. Trace ID: 56de3d8b-110a-4e47-94b8-bbccf5f18d00 Correlation ID: 65111496-fb4b-4a3a-be60-178baebf5775 Timestamp: 2019-11-19 09:33:07Z
The App is registered to have access to every Power BI API permission.
- JayendranSolution Sage
Hi Anonymous ,
Ah you don't need a client secret since this is a Native app.
Please see my answer below in Stackoverflow to convert your application into native app