When it comes to configuring the User Profile Service Application for SharePoint 2013, the best way to synchronise Active Directory users and groups is to use the “SharePoint Active Directory Import.”
Now why would we go for the Active Directory import and we can fully synchronise our SharePoint profiles with Active Directory? The simple answer is that when users fill out their profile information in MySites, it stops junk information being put back into Active Directory. If however you do want to move information back into Active Directory, you can create a Powershell script which then copies the information back into
Configuring User Profile Service Application
To set up the User Profile Service Application go to the Central Administration -> Application Management -> Manage Service Applications. From here click on your user profile service. This will bring you to the management page of the User Profile Service Application.
Under Synchronization, click on Configure Synchronization Settings. In Configure Synchronization Settings go down to Synchnization Options and select “Use SharePoint Active Directory Import and click on OK.
Configure Synchronization Connections
From the User Profile Server Application page, click on Configure Synchronization Connections under Synchronization.
Click on Create New Connection
Enter in a Connection name, in the first box.
For fully qualified domain name, enter in your local domain name.
For Authentication Provider Type, select Windows Authentication.
The synchronization connection will require a service account which connects to the active directory to read the account details. This account will need read permissions of Active Directory. Enter these credentials into the username and password text boxes.
As you will no doubt have disabled accounts in your Active Directory, you will want to tick the box, “Filter out disabled users.”
Once all this information has been entered, click on Populate Containers. This will then list the Active Directory Structure. Select the OU’s which you want to synchronize and click on OK.
Now to check to see if your connection works. Go back to the Manage User Profile Server Application page. Click on Start Profile Syncronization under Synchronization. After a couple of minutes refresh the page. On the right hand side, you should now see the information being populated with the number of profiles and properties it has picked up.