Recently we were playing around with an ADFS environment where there was a question of a supplier on the configured ADFS settings. Now my first reaction was why do you connect to ADFS and not to Azure AD because that is far more robust and future ready, but hey sometimes it’s just a fact that things are configured in a certain way :-).
So quick tip on how to export the settings to a text file
log on to the ADFS server and run Powershell as an admin. next up run this command:
Get-ADFSRelyingPartyTrust -name “NAME OF CLAIMRULE” | Select-Object -ExpandProperty IssuanceTransformRules | out-file c:\claimrule.txt
Where name of claimrule is the display name of the rule you see in the ADFS console on the server.
After export you can see in the textfile all information regarding the claim rule. Best part is you can import this again in your ADFS (or another environment) if needed. To do this do the following.
After logging on on the ADFS server and running PowerShell as an administrator run this command:
Set-ADFSRelyingPartyTrust -TargetName “NAME OF CLAIMRULE” -IssuanceTransformRulesFile c:\claimrule.txt
After this your claim rule will appear in the ADFS environment. Easy does it 🙂