Dynamics 365 for CRM:修改ADFS的过期时间,TokenLifetime

时间:2021-01-14 07:28:06

通过Microsoft PowerShell修改ADFS的过期时间实现延长CRM的过期时间

To change the timeout value, you will need to update the TokenLifetime value.  This is achieved using PowerShell.  Before you open PowerShell, you will need to find the name of each Relying Party.

1、Check the TokenLifetime value.  This number represents minutes    

  Get-ADFSRelyingPartyTrust -Name “Relying Party Trusts Display Name(如:crmauth.doamian.com)”

2、Set the TokenLifetime to the new value (8 hours = 480)    

  Set-ADFSRelyingPartyTrust -Targetname “Relying Party Trusts Display Name(如:crmauth.doamian.com)” -TokenLifetime 480

3、Repeat this step for each relying party(如:crminternal.domain.com)