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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
georgeS
New Member

Power Bi Api GenerateToken expiration

Hello,

 

So I'm able to generate Embedded Tokens for my reports using powerBI Api, however the default expiration date for such tokens is set to one hour after they are created. Is there a way to change this setting using the Api ?

1 REPLY 1
georgeS
New Member

I've found the solution to my problem. If anyone is wondering you can increase the lifetime of AccessTokens by creating a new policy for your Organization Active Directory. 

 

Here is the doc.

 

My current policy (sets access tokens to 1 day)

 

{

"TokenLifetimePolicy":{

    "Version":1,

    "AccessTokenLifetime":"1.00:00:00"

    }

}

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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

Top Solution Authors