---
title: "📋 SSO: Adjusting token lifetime on ADFS server via PowerShell and console"
url: "https://support.ftapi.com/en/article/sso-token-lifetime-am-adfs-server-via-powershell-und-konsole-anpassen"
language: "en"
last_updated: "2026-06-22T07:11:36.320Z"
---

# 📋 SSO: Adjusting token lifetime on ADFS server via PowerShell and console

This article is a guide for administrators on how to adjust the validity period of the SAML authentication token on an ADFS server.

## Reading the current validity period

The current validity period (in minutes) can be read using the following PowerShell command:

`Get-AdfsRelyingPartyTrust -Name "<YOUR_SERVER>" | Select -expand TokenLifetime`

![](https://cdn-assets.productfruits.com/60a935a0-98ce-45d0-8ef8-52a494db6b55)

## Adjusting the validity period

The value can be adjusted using the following PowerShell command:

`Set-AdfsRelyingPartyTrust -TargetName "<YOUR_SERVER>" -TokenLifetime <YOUR_VALUE>`

Adjust the "Web SSO lifetime" in the ADFS console under "Service" -> "Federation Service Properties" accordingly:

![](https://cdn-assets.productfruits.com/15e1f65d-3a13-428d-b7be-c59761c2ba7f)

The server service must be restarted to apply the changed configuration.

## **Related articles**

> #### [**❓ SSO: Why does the user have to log in again daily despite Single Sign-On?**](https://support.ftapi.com/de/article/-sso-warum-muss-sich-der-benutzer-trotz-single-sign-on-taglich-neu-anmelden)
