Configuring the User Profile Service in SharePoint 2010

Posted by on May 31, 2010 in SharePoint, SharePoint 2010

I first introduced Service Applications and User Profile Service Synchronization back when SharePoint 2010 was in beta, and as many of you who would have attempted this feat, would have come to realize that there were a couple of known issues, in particular those around utilizing a least privilege model with service accounts.  I’m confident in stating that these issues have now been resolved with RTM and in today’s article I will share with you my step by step guide in setting up the User Profile Service application, focusing on its configuration and administration and how we can enable the creation of user profiles via an Active Directory import .

SharePoint 2010 introduces the notion of “Service Applications” which build’s upon the “Shared Services Provider (SSP)” which was introduced in SharePoint 2007.  Service Applications are individual services that can be configured independently and can be shared across other sites within your farm with some service applications that can also be configured across farms.

The individual service applications provided with SharePoint 2010 are listed as follows;

  • Access Services
  • Business Data Connectivity
  • Document Conversion
  • Excel Services
  • Managed Metadata Service
  • PerformancePoint
  • Search Service
  • Secure Store
  • State Service
  • Visio Graphics Service
  • User Profile Service

This article will build upon our initial SharePoint 2010 install utilizing the least privilege model which I have documented here, so check it out if you haven’t already done so.

Managed Metadata Service

The User Profile service requires that the Managed Metadata Service is setup and configured first before attempting setting up our first User Profile Service.  The Managed Metadata service allows you to utilize managed metadata and provides you with the ability to share content types across sites.  You can read more about Managed Metadata here.

To setup our Managed Metadata Service, navigate to Central Administration / Application Management / Manage Service Applications.

Click New and select “Managed Metadata Service”

Enter the follow details;

Name: Managed Metadata Service

Database Server: <server_name>

Database Name: Managed Metadata DB

image

I will utilize the sp_farm account for the Application Pool Identity.

image

Click Create.

Lastly, navigate to Central Administration / System Settings / Manage services on server and start the Managed Metadata Web Service.

image

User Profile Service

Now that we have successfully configured our Managed Metadata service we can now focus our attention on the User Profile Service.  The User Profile Service provides our SharePoint farm with all the social networking features that we have come to love in SharePoint 2007, plus more.  It forms the basis of My Site support, User profile pages, Audiences and some of the newer features in SharePoint 2010 social computing such as social tagging.

Before we begin, we need to ensure that our Farm account (DOMAIN\sp_farm) is listed as a member of the Local Administrator’s group where the User Profile Synchronization (UPS) service will be deployed.  Please make a note to remove the DOMAIN\sp_farm account from the Local Administrator’s group after provisioning the User Profile Synchronization service.  Please also note, that if you ever have to re-provision the UPS service at a later date, that you will need to ensure the DOMAIN\sp_farm account is added back to the Local Administrator’s group.

Let’s now navigate to Central Administration / Application Management / Manage Service Applications.

Click New and select “User Profile Service Application”

image

The “Create New User Profile Service Application” window pops up in which you will enter the following details; (you will obviously enter in the details based on your environment setup)

Name: User Profiles

Create new application pool: SharePoint – User Profiles

image

Register a new managed account: e.g. DOMAIN\sp_userprofiles (nb: this account will need to be provisioned in Active Directory first)

image

Enter your Profile Database server details and database authentication.  You will notice that SharePoint 2010 introduces the ability to configure Failover Server which allows you to associate your SharePoint databases with another SQL server for failover purposes utilising SQL Server database mirroring.   We will not specify a Failover Database server for any of our databases at this present time.

image

Specify your Synchronization Database which is used to store configuration and staging data for synchronization of profile data such as that from Active Directory.

image

Next, specify your Social Tagging Database which is used to store tags and notes that are created by users.  Social Tagging is a new feature in SharePoint 2010 which is not only displayed against the items that user’s are tagging, but are also displayed in the user’s activity feed.

image

Next, select your Profile Synchronization Instance Server.

In the proceeding section, we will not create a My Site Host URL and will leave this for part two of this series.

Click Create.

image

You should now have the User Profiles service application listed and  started.

image

We will now venture back into Central Administration / System Settings / Manage services on server.

Scroll down to the User Profile Service and User Profile Synchronisation Service and start both.  The User Profile Service should start without any further user interaction, however the User Profile Synchronization Service will ask for your SharePoint Farm credentials.

image

Click Ok.

Both services should now be listed as started.

image

This in turn, will correctly configure and start our ForeFront Identity Manager Windows Services (FIM).

image

At this point, it is imperative you run an IIS reset.  Even better, just reboot the machine 🙂

We will now configure our User Profile Connection to our Active Directory Domain.

Navigate to Central Administration / Application Management / Manage Service Applications.

Click on User Profiles / Manage.

image

Click on Configure Synchronizations connections / Create New Connection.

Enter the follow details;

Connection Name:

Type: Active Directory

Auto discover domain controller or specify a domain controller

Authentication Provider Type: Windows Authentication

Account Name / Password:

Port: 389

image

Click on Populate Containers

image

Click OK.

Your connection should now be listed as follows upon successful creation.

image

We can now easily setup connection filters against our Active Directory User Profile connection by clicking on the connection that was just created and selecting “Edit Connection Filters”.

Specify and Add any User or Group exclusions and then click OK.

image

Next we will Configure a Synchronization Timer Job via Central Administration / Application Management / Manage Service Applications / User Profiles.

image

Click Enable

We will finish off by initiating a full synchronization via Central Administration / Application Management / Manage Service Applications / User Profiles / Start Profile Synchronization.

image

In order to confirm that the import was a success, the Number of User Profiles should now be set to the number of users in your organization, in my case I have 269 dummy users in my Active Directory domain.  Word of note; this will take some time and is considerably slower than an Active Directory User Profile import in SharePoint 2007.

image

You can also venture into Manage User Profiles and search for users (please take note that SharePoint 2010 does not display any users by default and that you will have to search for them).

image

Edit a User Profile to ensure that all the necessary Active Directory attributes were successfully imported.

image

We have now successfully completed a User Profile Synchronization which will form as a basis for User’s My Sites in my next article.  Until then, happy SharePointing!!

Subscribe to this blog and join our Facebook page and Twitter Page to keep up to date and be notified of our latest articles.

If you require any assistance with your SharePoint or other IT needs, the team at GKM2 are happy to assist.  You can contact us via info@gkm2.com.au or 1300 797 288 within Australia.

References

User Profile Service administration (SharePoint Server 2010) http://technet.microsoft.com/en-us/library/ee721050.aspx

Configure profile synchronization (SharePoint Server 2010) http://technet.microsoft.com/en-us/library/ee721049.aspx

15 Comments

  1. thanks alot very nice article it has been really helpful for me

  2. Hi There
    Thanks a lot for this detailed document. U have created a user service application profile and have succefully started it. however I have a problem with the User Profile synchronization which is taking long to start. i have been waiting for about 20 minutes now. Is this normal or did I do anything wrong, please advice

  3. If your Profile Synchronization service is hanging on “Starting”, try resetting the SP-Farm account password in AD to whatever you put in the credentials for the User Profile Synchronization Service. This could be happening because the passwords don’t match and SharePoint can not start the service based on the credentials provided. SharePoint 2010 does not throw any error if there is a password mismatch.

  4. fsdf

  5. Hi, will i install Active directory, sharepoint and sql server on the same machine ? this is because i already have Active directory in place..

  6. This configuration would only be suitable for dev environments.

  7. Thanks for taking the time to do this – I really like these step by steps with screenshots – well done and thanks!

    🙂

  8. Nice article, exactly something I was looking for, thanks a lot!! One question for George, in my case, the domain Netbios name is different from its FQDN (let’s say the Netbios name is aaa and the FQDN is bbb.local). After the sync, the account name is shown as bbbusername, not aaausername, which is problematic. I did run that particular script to enable the Netbios domain name, but still not solving this problem. I would greatly appreciate if you or someone could give me a hint!

  9. This was a great help. Thank you!

  10. This is a very useful guide to configuring UPS, thank you.

  11. did you get answer for this as I am also getting same issue.

  12. great article so easy to follow

  13. What is the primary attribute (key) that User Profile Services uses to sync with AD?

  14. Nice article but when I click the populate containers button nothing happens except it turns grey saying querying!

    Anyone else come across this and resolved it?

  15. It just takes its time to display everything.

Trackbacks/Pingbacks

  1. Tweets that mention Configuring the User Profile Service in SharePoint 2010 - Step by Step Guide | SharePoint George -- Topsy.com - [...] This post was mentioned on Twitter by Planet SharePoint, Paul Bendall. Paul Bendall said: RT @pl_sharepoint: George Khalil: Configuring…
  2. Configuring SharePoint 2010 Beta Service Applications and User Profile Service Synchronization | SharePoint George - [...] Configuring SharePoint 2010 Beta Service Applications and User Profile Service Synchronization Posted by George Khalil in SharePoint, SharePoint 2010…
  3. Active Directory Administration - [...] (rsat) download information and ... Screencast: windows server 2008 r2 – active directory ... Configuring the user profile service…
  4. Active Directory Configuration - [...] using active directory ... How to create a global address list programmatically using visual ... Configuring the user profile…
  5. Active Directory Guide - [...] certificate services ... Windows server 2008 r2: active directory recycle bin step-by-step ... Configuring the user profile service in…
  6. Active Directory Setup - [...] 2008 ca web enrollment proxy ... » integrate ucm (ecm/content server) with microsoft active ... Configuring the user profile…
  7. Configuring My Site in SharePoint 2010 | SharePoint George - [...] Configuring the User Profile Service in SharePoint 2010 [...]
  8. Active Directory User Import - [...] Related weblogs Sample java application that retrieves group membership of an ... Configuring the user profile service in sharepoint…
  9. Active Directory User Import - [...] manage outlook 2010 user photos with ... Active directory: import multiple user accounts | d0tk0m Configuring the user profile…
  10. links for 2010-06-29 « Jet Grrl - [...] Configuring the User Profile Service in SharePoint 2010 – Step by Step Guide | SharePoint Geor... (tags: sharepoint) [...]
  11. User profile sync links | Srinivas Achanta's Blog - [...] http://sharepointgeorge.com/2010/configuring-the-user-profile-service-in-sharepoint-2010/ Categories: Administration, Social Computing Tags: Administration, setup, sharepoint 2010, user profile service blog comments powered by Disqus var…
  12. Configuring the Managed Metadata Service Application in SharePoint 2010-Part 1 | SharePoint George - [...] one site collection.  I touched upon the Managed Metadata Service Application in my article in Configuring the User Profile…
  13. UserProfileApplicationNotAvailableException in SharePoint 2010 « kgraeme - [...] Configuring the User Profile Service in SharePoint 2010 [...]
  14. Tuttis Sharepoint Server Links « Unternehmensweites Wissensmanagement mit Microsoft Sharepoint Server - [...] http://sharepointgeorge.com/2010/configuring-the-user-profile-service-in-sharepoint-2010/ [...]
  15. Configuring the User Profile Service in SharePoint 2010 « All About SharePoint - [...] http://sharepointgeorge.com/2010/configuring-the-user-profile-service-in-sharepoint-2010/ [...]
  16. Unable to access My Site Hosts site « DanOnNet's Blog - [...] Server 2010) Configuring Profile Import in SharePoint 2010 – A Way Around the Minefields Configuring the User Profile Service…
  17. SharePoint 2010 Cookbook: Programmer's Guide to User Profiles, Part 1 - How to Check Admin Rights & Get All UserProfile Properties - SharePoint 2010 - Bamboo Nation - [...] Configuring the User Profile Service in SharePoint 2010 [sharepointgeorge] [...]
  18. SharePoint 2010 user profile synchronization Issues and fixes - Asaf Even - [...] וכאן יש מאמרים טובים שמסבירים שלב אחרי שלב איך להגדיר את [...]
  19. SharePoint 2010 User Profile Synchronization - [...] Anyway I’ve set up a SharePoint server and had a mess around to get some new sites and pages…
  20. How to Start SharePoint Service Apps with PowerShell - [...] -ApplicationPool $appPool -DefaultManaged Metadata Service (SP Standard)Note: Refer to this post on how to configure “User Profile Service” before…