Forum Discussion
PowerBi Add-in 401 Status ERROR, but not using the API
- Anonymous2 years ago
Hi jordan413 ,
When we use URL to embed the report into PowerPoint, Power Bi will automatically generate a token based on the login account. For the role of the Token in Power BI, you can refer to the document: Understand the OAuth 2.0 authorization code flow in Azure AD - Microsoft Entra | Microsoft Learn, the picture in the document shows the role of Token in detail.
Best Regards,
Clara Gong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi jordan413 ,
This problem may occur because the token has expired. When we use the Power BI service, a token will be generated, and this token will have a life cycle. When the token expires and we use the old token to access the same resource, 401 Unauthorized will appear. You can open your power BI service and then F12 to open a report, and you can see the information about the token in the network. This is the token generated by power bi itself. When the session expires and the cookie expires, an error will occur. Therefore, you need to refresh the browser regularly. More details can be found in the documentation:Permission tokens needed to embed a Power BI app - Power BI | Microsoft Learn.
If your Current Period does not refer to this, please clarify in a follow-up reply.
Best Regards,
Clara Gong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
So do you need embed tokens when embedding into PowerPoint? If possible I'd like a bit more details on how the token process works. This sounds very intresting and definitely a way into the right direction.
- Anonymous2 years agoNot applicable
Hi jordan413 ,
When we use URL to embed the report into PowerPoint, Power Bi will automatically generate a token based on the login account. For the role of the Token in Power BI, you can refer to the document: Understand the OAuth 2.0 authorization code flow in Azure AD - Microsoft Entra | Microsoft Learn, the picture in the document shows the role of Token in detail.
Best Regards,
Clara Gong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.