Hello,
I try use powershell to add additional authorization claim rule for my existing relying party. Some of them already have some authorization rules.
I try the following command, but fail:
[String]$rules='@RuleTemplate = "Authorization" @RuleName = "<name>" c:[Type == "http://schemas.xmlsoap.org/claims/Group", Value =~ "^(?i)<deny_group>$"] => issue(Type = "http://schemas.microsoft.com/authorization/claims/deny",
Value = "DenyUsersWithClaim");'
Set-ADFSRelyingPartyTrust –TargetName '<relying_party>' –IssuanceAuthorizationRules @{add=$rules}
If i try with
Set-ADFSRelyingPartyTrust –TargetName '<relying_party>' –IssuanceAuthorizationRules $rules
it work, but it will cover my existing authorization rules.
Thanks.