Forum Discussion
Increase Power BI access token session time out to 4hours.
I have a requirement where I need to keep my application active for 4 hours and since I have embed Power BI charts in the application after 1 hour (default time out), Power BI charts are no longer interactive from the application.
I have read articles saying Power BI access token lifetime can be extended until 24hours.
Can anybody help me in achieving this?
Hi SrilaxmiRamesh ,
Embedding and interacting with Power BI content (reports, dashboards and tiles) requires an access token. The access token can be either an Azure AD token, when embedding for your organization, or an embed token, when embedding for your customers. The access token has an expiration time, which means that after embedding a Power BI item, you have a limited amount of time to interact with it. You can refresh (or renew) the access token before it expires:
- Directly using the setAccessToken API
- Automatically if you're using an Azure AD token for embed for your organization
Here are some documents about access token and its lifetime:
Refresh the access token in Power BI embedded analytics | Microsoft Learn
Configurable token lifetimes - Microsoft Entra | Microsoft Learn
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 Reply
- v-jianboli-msft
Community Support
Hi SrilaxmiRamesh ,
Embedding and interacting with Power BI content (reports, dashboards and tiles) requires an access token. The access token can be either an Azure AD token, when embedding for your organization, or an embed token, when embedding for your customers. The access token has an expiration time, which means that after embedding a Power BI item, you have a limited amount of time to interact with it. You can refresh (or renew) the access token before it expires:
- Directly using the setAccessToken API
- Automatically if you're using an Azure AD token for embed for your organization
Here are some documents about access token and its lifetime:
Refresh the access token in Power BI embedded analytics | Microsoft Learn
Configurable token lifetimes - Microsoft Entra | Microsoft Learn
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.