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

Users not being emailed when adding permissions to sites.

Oct 2, 2014 at 5:32 PM
Edited Oct 2, 2014 at 6:43 PM
I'm having an issue in our production environment not getting emails when users are granted permissions to sites. It appears to work fine in our Test environment, but not in Production. The only thing that I can see different is some logs about LDACP. In our Test environment in the ULS logs I can see a line mentioning adding the permission typeEmail:

10/02/2014 12:27:42.85 w3wp.exe (0x12AC) 0x191C Unknown LDAPCP 00000 Medium [LDAPCP] The LDAP Query "(|(&(objectclass=user) (userPrincipalName=sptest01*))(&(objectclass=group) (sAMAccountName=sptest01*))(&(objectclass=user) (displayName=sptest01*))(&(objectclass=user) (cn=sptest01*))(&(objectclass=user) (sAMAccountName=sptest01*))(&(objectclass=user) (sPFullName=sptest01*)))" returned 1 result(s) 4041be9c-847a-1041-01c9-b5896e2ca5f8
10/02/2014 12:27:42.85 w3wp.exe (0x12AC) 0x191C Unknown LDAPCP 00000 Verbose [LDAPCP] Added metadata to permission: type: "DisplayName", value: "SharePoint Test 01" 4041be9c-847a-1041-01c9-b5896e2ca5f8
10/02/2014 12:27:42.85 w3wp.exe (0x12AC) 0x191C Unknown LDAPCP 00000 Verbose [LDAPCP] Added metadata to permission: type: "Email", value: "sptest01" 4041be9c-847a-1041-01c9-b5896e2ca5f8
10/02/2014 12:27:42.85 w3wp.exe (0x12AC) 0x191C Unknown LDAPCP 00000 Verbose [LDAPCP] Added metadata to permission: type: "WorkPhone", value: "208-xxx-xxxx" 4041be9c-847a-1041-01c9-b5896e2ca5f8
10/02/2014 12:27:42.85 w3wp.exe (0x12AC) 0x191C Unknown LDAPCP 00000 Verbose [LDAPCP] Created permission with claim value: "sptest01@2008r2.local", claim type: "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn" to the list of results. 4041be9c-847a-1041-01c9-b5896e2ca5f8
10/02/2014 12:27:42.85 w3wp.exe (0x12AC) 0x191C Unknown LDAPCP 00000 Medium [LDAPCP] Added permission created with LDAP lookup: claim value: "sptest01@2008r2.local", claim type: "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn" to the list of results. 4041be9c-847a-1041-01c9-b5896e2ca5f8

However in our other environment its missing that line even though the claim mapping appears to be identical between all sites. Could this be the issue? Email within SharePoint appears to be working fine.
Coordinator
Oct 3, 2014 at 12:12 PM
hello,
indeed, this is the reason why it's not added. To populate the email, property PeopleEditorEntityDataKeys.Email ( http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.peopleeditorentitydatakeys.email.aspx ) must be set in "claims table" page.
Unfortunately this cannot be checked in current version of admin page, as column is not shown.
I'm currently working on an update that displays this column.
In the meantime, you can add property to the list if you click on New item > select "Does not query LDAP with specified attribute, but use it as a metadata of the new permission" > select permission medata "Email" and type appropriate LDAP values.
cheers,
Yvan
Marked as answer by Yvand on 10/6/2014 at 4:25 AM
Oct 3, 2014 at 9:27 PM
Thanks! That seems to have resolved the issue we were seeing. Is there a reason why it would be working in our Test environment but not the other two environments? They are all configured the same and using the same AD as well. I'm glad it's fixed, just trying to get some more insight on the exact problem.

Thanks again!

Wes
Coordinator
Oct 6, 2014 at 11:25 AM
Hello,
1 possibility is if you removed and recreated email claim type: by default it contains the mapping with Email datakey but if you deleted and recreated the claim type maybe you didn't set this setting back.
Cheers,
Yvan