This project has moved. For the latest updates, please go here.

I got two results formated differently for the same user

Oct 22, 2015 at 5:53 PM
Edited Oct 23, 2015 at 9:42 AM
Good evening,

I got two results formated differently for the same user.

Any idea how to avoid this?

In the CODE below the same user is called twice.

1- The first time the value of 'isIdentityClaimType' is false,
2- the second time the value is true

protected override string FormatPermissionDisplayText(
string claimType, string claimValue, bool isIdentityClaimType, ConsolidatedResult result
) {return base.FormatPermissionDisplayText( claimType, claimValue, isIdentityClaimType, result); }

...Can I use this boolean flag to interrupt when 'false' the system adding this user to the display choice of the picker and avoid doublons?

If it's impossible to avoid dublons, where can I decide to skipp or not adding a user result?
Oct 23, 2015 at 3:58 PM
Seems it linked to the number of keys used that found the user.
Oct 26, 2015 at 1:03 PM
in LDAPCP thers is a filtering process that prevents doublons from occuring.
So far I never saw a problem with a doublon returned to people picker. Did you confirm with SharePoint logs (filter on product/area "LDAPCP") that LDAPCP actually creates the same permission twice?
Oct 30, 2015 at 9:58 AM
In fact the doublon was by key, one by email the second via another key.
Thank you Yvand.
Marked as answer by csiefers on 10/30/2015 at 1:58 AM