Forum Discussion
How to get EmbedToken Generated ?
Hi uaydogdu ,
What would be the difference between the AccessTokens getting at the first and the fourth steps?
Firstly, you will get Entra ID Token (Access Token) by Master User (Account and Password) or Service principal as authentication.
Then you will use this access token to get Embed token in below step.
So they are different.
You may refer to workload and offical blog for more details.
For reference: Permission tokens needed to embed a Power BI app - Power BI | Microsoft Learn
For reference:
Generate an embed token in Power BI embedded analytics - Power BI | Microsoft Learn
As far as I know, here you are using master user (password) as authentication.
I think you need to give permissions as below when you register your Microsoft Entra application.
All of the following, unless a requirement doesn't apply:
- Report.ReadWrite.All or Report.Read.All
- Dataset.ReadWrite.All or Dataset.Read.All
- Content.Create, required if the
allowSaveAsflag is specified in GenerateTokenRequest
For reference:
Embed content in your Power BI embedded analytics application - Power BI | Microsoft Learn
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.