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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
fxs7576_02
Helper I
Helper I

Modify the Expiration of Embed Access Token

Hi Microsoft Community,

 

Is it possible to modify the expiration of the access token for embed URL from one hour to say 30 mins or no expiration?

I'm currently using the Embed for Your Customers method, as this is for customers outside the organization who do not have PowerBI.

 

Best regards

 

1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @fxs7576_02 ,

 

As far as I know, there are some Considerations and limitations for Embed token.

  • For security reasons, the lifetime of the embed token is set to the remaining lifetime of the Microsoft Entra token used to call the GenerateToken API. Therefore, if you use the same Microsoft Entra token to generate several embed tokens, the lifetime of the generated embed tokens will be shorter with each call.

You may try to more details about access token and token lifetime.

For reference: 

Microsoft Entra token

Configurable token lifetimes

Access tokens in the Microsoft identity platform

Configure tokens - Azure Active Directory B2C | 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.

View solution in original post

1 REPLY 1
v-rzhou-msft
Community Support
Community Support

Hi @fxs7576_02 ,

 

As far as I know, there are some Considerations and limitations for Embed token.

  • For security reasons, the lifetime of the embed token is set to the remaining lifetime of the Microsoft Entra token used to call the GenerateToken API. Therefore, if you use the same Microsoft Entra token to generate several embed tokens, the lifetime of the generated embed tokens will be shorter with each call.

You may try to more details about access token and token lifetime.

For reference: 

Microsoft Entra token

Configurable token lifetimes

Access tokens in the Microsoft identity platform

Configure tokens - Azure Active Directory B2C | 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.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors