Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 11 | |
| 7 | |
| 4 | |
| 3 | |
| 3 |