Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Adding a Acceptance Transform Rule to existing Claims Provider Trust in ADFS 2.0

$
0
0

Hi,

Using PowerShell, I am trying to add a new Acceptance Transform Rule to the existing Claims Provider Trust (named Active Directory). Please see the following screenshots, I am trying to add Rule 11 using PowerShell

I used the following PowerShell to achieve this:

$crSet = New-ADFSClaimRuleSet -ClaimRule '@RuleTemplate = "LdapClaims" @RuleName = "UPN Claim Rule" c:[Type == "http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsaccountname", Issuer == "AD AUTHORITY"] => issue(store = "Active Directory", types = ("http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn"), query = ";userPrincipalName;{0}", param = c.Value);' 
Set-ADFSClaimsProviderTrust -TargetName "Active Directory" -AcceptanceTransformRules $crSet.ClaimRulesString

The problem is the script above removes all existing Rules and adds mine. I just want to add mine and keep all existing as is.

Thanks in advance!


Admin QuikView Solution for CRM 2013



Viewing all articles
Browse latest Browse all 21975

Trending Articles