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
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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!