We have mapped a LDAP Employee ID property with Sharepoint 2010 user profile property.
1) Create a Sharepoint user profile property (EID)
2) Check the Forefront manager for LDAP property which needs to be mapped with Sharepoint user profile property using powershell command.
- Forefront manager path.
- Drive:\Program Files\Microsoft Office Servers\14.0\Synchronization Service\UIShell)
- Click on the “Management Agents” tab
- There should be a management agent in the list that represents your synchronization connection. For Active Directory synchronization connections, the management agent will have the name MOSSAD-YourSynchConnectionName . Double click on the management agent that represents your synchronization connection
- Click on “Select Attributes”
- Select the “Show All” check box
- This should show you a list of all LDAP attributes that can be mapped to SharePoint managed properties. Remember that the $fimProperty variable in the script should have the exact same value as the attribute appears here. If the desired attribute is not in this list, the script will throw “Unable to process Put message” error.
3) Start and Stop the two services (User Profile Service and User Profile Synchronization Service
4) Run the below powershell command.
$spsProperty = "EID" # Internal name of sharepoint user profile property
$fimProperty = "employeeID" #Name of the attribute of the LDAP
$connectionName = "User_Profile" #Name of the sharepoint synchronization connection
$site = Get-SPSite $url
$serviceContext = Get-SPServiceContext($site)
$upManager = new-object Microsoft.Office.Server.UserProfiles.UserProfileConfigManager($serviceContext)
$synchConnection = $upManager.ConnectionManager[$connectionName]
$synchConnection.PropertyMapping.AddNewMapping([Microsoft.Office.Server.UserProfiles.ProfileType]::User, $spsProperty, $fimProperty)
5) If Error comes restart the server and run the above powershell command again.