LDAPCP icon indicating copy to clipboard operation
LDAPCP copied to clipboard

Unable to remove email address from people picker popup without breaking quickedit on 2019/SE.

Open renzska opened this issue 2 years ago • 6 comments

Thanks for your work on LDAPCP. It's been a life saver.

My main goal is to get rid of the "(Email Address)" people picker choices and have both the regular form people picker and the list quick edit people picker work. I want the displayName in the People Picker choices with Title below the displayName. Unfortunately, I cannot get this working correctly.

I'm trying to resolve an issue with the list quick edit people picker breaking when removing the emailaddress claim type and mail attribute claim. I'm doing this to remove results from the people picker showing up as "(EmailAddress) [email protected]" as we want the only items to show in the people picker as their displayName.

The default my site is showing is both the email address picker choices in addition to the displayName options depending on what I type. Here are my modified settings:

image

Here are the claims configuration properties when the people picker shows "(EmailAddress) [email protected]":

image

The first image below is showing his upn in () which is an email address in the following format: [email protected]. The second image is showing the ad mail property which [email protected] for the (EmailAddress) entry I'm trying to remove.

image

I can get the email address removed from the people picker if I delete the following claim settings, but then the List Quick Edit People Picker is broken:

image

Once I do that, however, then the List Quick Edit for the People Picker breaks and gives the following error when trying to save a new record: "The user does not exist or is not unique." I'm assuming it needs the mail property. However, the regular form people picker works fine at this point.

Any help in getting this resolved would be appreciated.

Thanks,

John

renzska avatar Oct 14 '22 22:10 renzska

Forgot to include this before:

Get-SPTrustedIdentityTokenIssuer Output:

UseStateToRedirect : False ProviderUri : ProviderSignOutUri : DefaultProviderRealm : ProviderRealms : {} ClaimTypes : {http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress, http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn, http://schemas.microsoft.com/ws/2008/06/identity/claims/role, http://schemas.microsoft.com/ws/2008/06/identity/claims/primarysid} HasClaimTypeInformation : True ClaimTypeInformation : {UPN, EmailAddress, Role, SID} ClaimProviderName : LDAPCP UseWReplyParameter : True UseWHomeRealmParameter : False GroupClaimType : RegisteredIssuerName : DefaultClientIdentifier : ScopedClientIdentifier : AuthorizationEndPointUri : TrustedLoginMethod : None ResponseTypesSupported : Scope : IdentityClaimTypeInformation : Microsoft.SharePoint.Administration.Claims.SPTrustedClaimTypeInformation Description : ADFS 3.0 Provider SigningCertificate : [Subject] CN=

                            [Issuer]
                              CN=
                            
                            [Serial Number]
                              
                            
                            [Not Before]
                              1/31/2017 8:05:20 PM
                            
                            [Not After]
                              1/29/2027 8:05:20 PM
                            
                            [Thumbprint]
                              
                            

AdditionalSigningCertificates : {} MetadataEndPoint : IsAutomaticallyUpdated : False Name : ADFS TypeName : Microsoft.SharePoint.Administration.Claims.SPTrustedLoginProvider DisplayName : ADFS Id : 3034d275-35a6-4234-ae19-f6bf16aa6726 Status : Online Parent : SPSecurityTokenServiceManager Name=SecurityTokenServiceManager Version : 206573 DeploymentLocked : False Properties : {} Farm : SPFarm Name=SPSE_Config UpgradedPersistedProperties : {}


(Get-SPTrustedIdentityTokenIssuer).IdentityClaimTypeInformation

DisplayName : UPN InputClaimType : http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn MappedClaimType : http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn IsIdentityClaim : True AcceptOnlyKnownClaimValues : False ClaimValueModificationAction : None ClaimValueModificationArgument : KnownClaimValues : {} UpgradedPersistedProperties :

(Get-SPTrustedIdentityTokenIssuer).ClaimTypeInformation

DisplayName : UPN InputClaimType : http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn MappedClaimType : http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn IsIdentityClaim : True AcceptOnlyKnownClaimValues : False ClaimValueModificationAction : None ClaimValueModificationArgument : KnownClaimValues : {} UpgradedPersistedProperties :

DisplayName : EmailAddress InputClaimType : http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress MappedClaimType : http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress IsIdentityClaim : False AcceptOnlyKnownClaimValues : False ClaimValueModificationAction : None ClaimValueModificationArgument : KnownClaimValues : {} UpgradedPersistedProperties :

DisplayName : Role InputClaimType : http://schemas.microsoft.com/ws/2008/06/identity/claims/role MappedClaimType : http://schemas.microsoft.com/ws/2008/06/identity/claims/role IsIdentityClaim : False AcceptOnlyKnownClaimValues : False ClaimValueModificationAction : None ClaimValueModificationArgument : KnownClaimValues : {} UpgradedPersistedProperties :

DisplayName : SID InputClaimType : http://schemas.microsoft.com/ws/2008/06/identity/claims/primarysid MappedClaimType : http://schemas.microsoft.com/ws/2008/06/identity/claims/primarysid IsIdentityClaim : False AcceptOnlyKnownClaimValues : False ClaimValueModificationAction : None ClaimValueModificationArgument : KnownClaimValues : {} UpgradedPersistedProperties :

renzska avatar Oct 14 '22 22:10 renzska

And this:

Get-SPClaimProvider

DisplayName : System Description : Provides system claim data. IsEnabled : True IsUsedByDefault : True IsVisible : True AssemblyName : Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c TypeName : Microsoft.SharePoint.Administration.Claims.SPSystemClaimProvider ClaimProvider : Microsoft.SharePoint.Administration.Claims.SPSystemClaimProvider ClaimProviderType : Microsoft.SharePoint.Administration.Claims.SPSystemClaimProvider IsValid : True UpgradedPersistedProperties : {}

DisplayName : Active Directory Description : Active Directory claim data. IsEnabled : True IsUsedByDefault : False IsVisible : False AssemblyName : Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c TypeName : Microsoft.SharePoint.Administration.Claims.SPActiveDirectoryClaimProvider ClaimProvider : Microsoft.SharePoint.Administration.Claims.SPActiveDirectoryClaimProvider ClaimProviderType : Microsoft.SharePoint.Administration.Claims.SPActiveDirectoryClaimProvider IsValid : True UpgradedPersistedProperties : {}

DisplayName : All Users Description : Provides identity provider claim data. IsEnabled : True IsUsedByDefault : True IsVisible : True AssemblyName : Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c TypeName : Microsoft.SharePoint.Administration.Claims.SPAllUserClaimProvider ClaimProvider : Microsoft.SharePoint.Administration.Claims.SPAllUserClaimProvider ClaimProviderType : Microsoft.SharePoint.Administration.Claims.SPAllUserClaimProvider IsValid : True UpgradedPersistedProperties : {}

DisplayName : Forms Auth Description : Forms Based Authentication claim data. IsEnabled : True IsUsedByDefault : False IsVisible : True AssemblyName : Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c TypeName : Microsoft.SharePoint.Administration.Claims.SPFormsClaimProvider ClaimProvider : Microsoft.SharePoint.Administration.Claims.SPFormsClaimProvider ClaimProviderType : Microsoft.SharePoint.Administration.Claims.SPFormsClaimProvider IsValid : True UpgradedPersistedProperties : {}

DisplayName : User Profile Claim Provider Description : User Profile Claim Provider IsEnabled : True IsUsedByDefault : True IsVisible : True AssemblyName : Microsoft.Office.Server.UserProfiles, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c TypeName : Microsoft.Office.Server.Security.UserProfileClaimProvider ClaimProvider : Microsoft.Office.Server.Security.UserProfileClaimProvider ClaimProviderType : Microsoft.Office.Server.Security.UserProfileClaimProvider IsValid : True UpgradedPersistedProperties : {}

DisplayName : LDAPCP Description : LDAPCP IsEnabled : True IsUsedByDefault : True IsVisible : True AssemblyName : ldapcp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=80be731bc1a1a740 TypeName : ldapcp.LDAPCP ClaimProvider : ldapcp.LDAPCP ClaimProviderType : ldapcp.LDAPCP IsValid : True UpgradedPersistedProperties : {}

renzska avatar Oct 14 '22 22:10 renzska

Here are the settings we used on SharePoint 2013 with LDAPCP v3.7.0.0 that worked the way I'm hoping we can get to work on SharePoint 2019 and SharePoint Subscription Edition:

image

renzska avatar Oct 15 '22 01:10 renzska

@renzska deleting the email address claim type in LDAPCP claims list is the correct approach to get rid of entries like "(EmailAddress) [email protected]" in the people picker. The error you got in the quick edit view is because a permission on this claim type already exists, so you need to delete it and recreated under the UPN claim type first

Side note: Your version of LDAPCP is completely outdated, you should really update it to the latest version

Yvand avatar Oct 18 '22 08:10 Yvand

Thanks for the reply. The 3.7.0.0 is from an old environment that I was using to compare against the new environment running the latest v15, which is where we are having the issue.

I’m not sure what you mean when you say:

The error you got in the quick edit view is because a permission on this claim type already exists, so you need to delete it and recreated under the UPN claim type first

I’d appreciate it if you could give me more detail on what you meant.

renzska avatar Oct 18 '22 16:10 renzska

This issue won't repro in a new list. But if you add a people column and add a user like "(EmailAddress) [email protected]" you will reproduce it. You'll need to first delete this user and re-add it in UPN claim format

Yvand avatar Oct 19 '22 07:10 Yvand

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 22 '22 21:11 stale[bot]

We have opened a ticket with Microsoft and they have been able replicate the issue in their environment and it is not related to LDAPCP. They will keep us updated on the issue as they work through it.

Thanks,

John

On Tue, Nov 22, 2022 at 2:17 PM stale[bot] @.***> wrote:

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

— Reply to this email directly, view it on GitHub https://github.com/Yvand/LDAPCP/issues/166#issuecomment-1324247523, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADDLATYYFBL5JIIUFY77JEDWJUZ7BANCNFSM6AAAAAARFTOA2E . You are receiving this because you were mentioned.Message ID: @.***>

renzska avatar Nov 23 '22 01:11 renzska

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 23 '22 21:12 stale[bot]