Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I am trying to set the maximum timeout for embed token using C#, can someone tell me if it possible to change it from default 1 hour?
Solved! Go to Solution.
Hi @Anonymous,
Yes, you can. You need to configure it in the Azure. Please refer to active-directory-configurable-token-lifetimes#example-manage-an-organizations-default-policy. I tried it like below successfully.
New-AzureADPolicy -Definition @('{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"02:00:00","MaxAgeSessionSingleFactor":"02:00:00","MaxInac tiveTime":"30.00:00:00","MaxAgeMultiFactor":"until-revoked","MaxAgeSingleFactor":"180.00:00:00"}}') -DisplayName "WebApiDefaultPolicyScenario" -IsOrganizationDefault $true - Type "TokenLifetimePolicy"
Best Regards,
Dale
Hi @Anonymous,
Yes, you can. You need to configure it in the Azure. Please refer to active-directory-configurable-token-lifetimes#example-manage-an-organizations-default-policy. I tried it like below successfully.
New-AzureADPolicy -Definition @('{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"02:00:00","MaxAgeSessionSingleFactor":"02:00:00","MaxInac tiveTime":"30.00:00:00","MaxAgeMultiFactor":"until-revoked","MaxAgeSingleFactor":"180.00:00:00"}}') -DisplayName "WebApiDefaultPolicyScenario" -IsOrganizationDefault $true - Type "TokenLifetimePolicy"
Best Regards,
Dale
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
6 | |
6 | |
3 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
3 |