Enabling the
RelayState
parameter for IdP-initiated sign-on (Self Service Portal only)

If configuring an IdP for the Self Service Portal, complete the following steps to enable the
RelayState
parameter for IdP initiated sign-on:
  1. In a standard text editor, open the appropriate configuration file:
    • On Microsoft Windows 2008 R2 Server platforms, open the
      web.config
      file. This file is typically located at
      C:\inetpub\adfs\ls\
    • On Microsoft Windows 2012 and 2012 R2 Server platforms, open the
      Microsoft.IdentityServer.Servicehost.exe.config
      file. This file is typically located at
      C:\Windows\ADFS\
  2. Add the following entry between
    <microsoft.identityServer.web>
    and
    </microsoft.identityServer.web>
    :
    <useRelayStateForIdpInitiatedSignOn enabled="true" />
  3. Save the configuration file.
  4. In AD FS for Windows 2106 Server and Windows 2019 Server, run the following command in PowerShell:
    Set-AdfsProperties -EnableRelayStateForIdpInitiatedSignOn $true