ADFS Access Control Policies in windows Server 2022

Marius - Roma 416 Reputation points
2021-12-15T18:09:01.777+00:00

I am testing ADFS in a lab environment on some Windows Server 2022 servers.
I can't locate up-to-date documentation about "Access Control Policies".
Let me ask for some clarifications:

  • After creating a new Access Control Policy, how can I set it to be "in use"?
  • During the creation of a new Access Control Policy I see two tabs: "General" and "Assigned to": what should I enter in "Assigned to" to assign it to the whole of the ADFS portal?

Where can I locate detailed documentation about ADFS in Windows Server 2022?
Regards

Microsoft Security | Active Directory Federation Services
Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Pierre Audonnet - MSFT 10,201 Reputation points Microsoft Employee Moderator
    2021-12-15T19:26:11.08+00:00

    The Access Control Policy feature has not changed since its creation. The ADFS on Windows Server 2016 documentation is still accurate on this topic.

    The policy can be assigned from the Relying Party Trust section.
    158014-image.png
    If your environment was upgraded from Windows Server 2012 R2 to higher (either to 2016/2019 or directly to 2022) and the Relying Party was created prior this upgrade, it might not display the Access Control Policy window when you click there but this instead:
    157954-image.png
    In that case you can just delete the rules you see there and then apply an Access Control Policy like aforementionned.

    You can also backup the current rules in case you want to go back:

    Get-AdfsRelyingPartyTrust -Identifier "<your RP id>" | Select-Object -ExpandProperty IssuanceAuthorizationRules | Out-File IssuanceAuthorizationRules.bk  
    Get-AdfsRelyingPartyTrust -Identifier "<your RP id>" | Select-Object -ExpandProperty AdditionalAuthenticationRules | Out-File AdditionalAuthenticationRules.bk  
    

    And you can restore them this way:

    Set-AdfsRelyingPartyTrust -TargetIdentifier "<your RD id>" -IssuanceAuthorizationRulesFile IssuanceAuthorizationRules.bk  
    Set-AdfsRelyingPartyTrust -TargetIdentifier "<your RD id>" -AdditionalAuthenticationRulesFile AdditionalAuthenticationRules.bk  
    
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.