Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

0

How to fix the issue of access token

Hi All,

 

Power BI reports have been embed on the website for a while, but it gets a issue about generating access token reached thelimitation recently.  

Then we upgrade Power BI account to be Premium, but the issue is still existing. 

 

Is there anyone could provide any idea to fix it ? 

 

 

 

ecvshuyi_0-1656824124502.png

 

Status: Delivered

Hi @ecv-shuyi ,

 

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. To give your users a continuous experience, refresh the access token before it expires.

There are two ways to refresh your access token:

  • Directly using the setAccessToken API
  • Automatically if you're using an Azure AD token for embed for your organization.

 

Hope it helps,

 

Best Regards,
Community Support Team _ Caitlyn

Comments
v-xiaoyan-msft
Community Support
Status changed to: Delivered

Hi @ecv-shuyi ,

 

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. To give your users a continuous experience, refresh the access token before it expires.

There are two ways to refresh your access token:

  • Directly using the setAccessToken API
  • Automatically if you're using an Azure AD token for embed for your organization.

 

Hope it helps,

 

Best Regards,
Community Support Team _ Caitlyn

ecv-shuyi
New Member

Hi @v-xiaoyan-msft ,

 

Thank you for your help. 

So it is unnecessory to upgrade Premium , I just need refreshing access token through the ways , right ?

 

and does it need to call api every time when access token expired ?

 

Thank you.