Skip to content

Commit

Permalink
Show the displayName of users in the people picker list by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvand committed Feb 20, 2024
1 parent 94e69f3 commit 82c4059
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ public static ClaimTypeConfigCollection ReturnDefaultClaimTypesConfig(string cla
ctConfig = new ClaimTypeConfig { ClaimType = spTrust.IdentityClaimTypeInformation.MappedClaimType };
newCTConfigCollection.Add(ctConfig);
}
// By default, do the same as AD claims provider: Show the displayName of users in the people picker list
newCTConfigCollection.UserIdentifierConfig.DirectoryObjectAttributeForDisplayText = "displayName";


//// Not adding those as additional attributes to avoid having too many LDAP attributes to search users in the LDAP filter
var nonIdentityClaimTypes = ClaimsProviderConstants.GetDefaultSettingsPerUserClaimType().Where(x => x.Key != spTrust.IdentityClaimTypeInformation.MappedClaimType);
Expand Down

0 comments on commit 82c4059

Please sign in to comment.