What Should I do when my NetBios Name and Domain names are different in SharePoint 2013 User Profile Service?

What Should I do when my NetBios Name and Domain names are different in SharePoint 2013 User Profile Service?



Problem:

1.       Domain Name : somecompany.abc.com
2.       NetBIOS Name of the Domain : SC
3.       User Profile Service does not properly Sync the Profiles with Active Directory.
4.       Some of the user names has domain name as SC\AccountName and some of the user profiles loaded as abc\AccountName.
This is happening when we have two different values in our Active Directory Domain name and NetBIOS name.
SharePoint User Profile Service is getting confused to get which details during the Sync.

Solution:

Enable NetBIOS Name to use during the Profile Synchronization.

How to Enable NetBIOS Name in SharePoint User Profile Service?
1.       Delete the Existing User Profile Synchronization Connection.
2.       Enable The NetBIOS Name in User Profile Service Via PowerShell
3.       Create New User Profile Synchronization Connection with your Active Directory.
4.       Run Full Profile Synchronization.
5.       Run STSADM Command to delete existing data if it is still showing the old data in UPS


Delete Existing User Profile Synchronization Connection

1.       Navigate to SharePoint Central Administration Site.
2.       CA -> Application Management -> Manage Service Applications - > Select User Profile Service to modify.
3.       Click Manager Synchronization Connections
4.       Select the existing connection and select to delete the connection.

Enable NetBIOS Name in User Profile Service.

1.       Open SharePoint Management Shell as Administrator.
2.       Get the User Profile Service Details
a.       Type Get-SpServiceApplication  and execute.
b.      Above command will list down all the Service applications of the Farm.
c.       Select the UPS Application which you need to modify and copy the GUID of the service.


3.       Get the User Profile Application in to variable
a.       Type below command and execute
$UPS = Get-SpServiceApplication –identity “GUID”;
$UPS. NetBiosDomainNamesEnabled = $True;
$UPS.Update();


4.       As a practice I used to restart the server (if Possible) once I do this kind of a modification.
5.       Or else at least do a service restart and IIS Reset of the server which UPS is configured to run.

Create new User Profile Sync Connection.

1.       Navigate to SharePoint Central Administration Site.
2.       CA -> Application Management -> Manage Service Applications - > Select User Profile Service to modify.
3.       Create New Connection with your active Directory.
NOTE: make sure you have granted the Replicate Directory Permissions to your UPS Synchronization Account in your Active Directory.

Once everything above is completed, start a Full Profile Synchronization.

For some schnarios even after full Synchronization completed, it is not showing the Updated Accounts in AD.
In this kind of a situation, you need to execute below STSADM Command
Stsadm.exe -o deleteolddatabases 0

Popular posts from this blog

How to Create Host Header to SharePoint Web Application

System.Data.SqlClient.SqlException (0x80131904): The EXECUTE permission - User Profile Issue

How to add PDF Icon in SharePoint