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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Helper I
Helper I

Refresh access token to be used for Power BI Rest API



I am embedding report into custom application using Power BI Rest API

Ref : Embedd using Azure active directory , power bi account and Power BI API


In this flow user is authenticated by auth2 authentication. first i get autorisation code and based on autorisation code i get access token. lifespan of access token is 1hr.(3600 sec)


Is there any way to refresh this acess token. I tried with  refreshToken method of AD APIS , but it returned me unauthorised error.


Please let me know if anything is available to refresh the token.


Thanks In advance.





As your question is actually regarding ADAL, I'd suggest you post it in the dedicated azure AD forum


By the way, may I know why you don't request a new token every time? 

Helpful resources

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.