Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
4 | |
4 | |
3 | |
3 | |
3 |