question

PraveenaUppalapatiELB-4701 avatar image
0 Votes"
PraveenaUppalapatiELB-4701 asked PraveenaUppalapatiELB-4701 commented

Increase Access token lifetime to 12 hours using a custom policy

We're trying to configure access token expiry time to 12 hours using below powershell cmdlets, but it's not getting enforced on application.

New-AzureADPolicy -Definition @('{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"12:00:00"}}') -DisplayName $policyName -IsOrganizationDefault $false -Type "TokenLifetimePolicy"


$app = Get-AzureADApplication -Filter "DisplayName eq '$applicationName'"

Add-AzureADApplicationPolicy -Id $app.ObjectId -RefObjectId $policy.Id

Need help in configuring access token expiry time to 12 hrs for an app in Azure AD (Default is 1 hr).

azure-active-directory
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

What happens when you set the policy? Do you have any conditional access policies or default policies that could be overwriting this?

You can try the troubleshooting steps in this article as well. https://docs.microsoft.com/en-us/azure/active-directory/develop/configure-token-lifetimes

0 Votes 0 ·

We are having only one policy we are verifying the policy whether it is applied or not using the Get -AzureADPolicyAppliedObject command. Given the screenshot for the same.
152841-image.png


0 Votes 0 ·
image.png (25.6 KiB)

0 Answers