I want to use the following PowerShell command with ADFS. How can I define to use the right Authentication Provider Instance?

enter image description here

My working command, but not working for ADFS:

 Add-SPProfileSyncConnection -ProfileServiceApplication $UPA -ConnectionForestName $Domain.DNSRoot -ConnectionDomain $Domain.DNSRoot -ConnectionUserName $User -ConnectionPassword $PWord -ConnectionSynchronizationOU $Domain.UsersContainer 

How can I add my ADFS connection with PowerShell?


Try the following:

#provision connection with Claim Provider 
$UpaName = "ID-User-Profile-Service-Application"
$ForestName = "xy.com"
$DomainName = "xy"
$AdImportUserName = "User without domain\"
$AdImportPassword = "Password" | ConvertTo-SecureString -AsPlainText -Force
$SyncOU = "OU=my,DC=xy,DC=com"

Add-SPProfileSyncConnection -ProfileServiceApplication $UpaName -ConnectionClaimProviderIdValue "Name of your ADFS Connection" -ConnectionClaimProviderTypeValue "Trusted" -ConnectionForestName $ForestName -ConnectionDomain $DomainName -ConnectionUserName $AdImportUserName -ConnectionPassword $AdImportPassword -ConnectionSynchronizationOU $SyncOU

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.