I took me hours and hours to get to User Profile Service Application working.
These are the steps I’ve done in some scenarios.
Especial to migrate an SharePoint 2007 profile database to SharePoint 2010.
0. The databases for the User Profile Service Application must run on the standard instance of SQL Server. NEVER use a named instance. – Always use SQL Aliases instead!!!
1. (Skip this next step if you don’t need to migrate.) Backup the Shared Service Provider Database of your MOSS farm.
2. Restore the farm to your destination SQL Server instance and with the destination database name, e.g. “SP_SvcApp_UserProfile_Profiles”.
(In the MOSS farm the database was named “MOSS_SSP_Config” !!! –> It’s the configuration database of the Shared Service Provider.)
3. Create the User Profile Service Application with this PowerShell script:
During the creation of the User PRofile Service Application the MOSS database will be migrated!!
If you did no restore previously the profile database will be created in this step.
4. The farm account must be local admin on the farm server.
5. Go into the SQL Server Management Studio.
6. Set the farm account – in my example “sp_farm” – as SYSADMIN in your SQL Server instance.
7. Edit the User Logins for the (migrated) profile database.
The farm account should exist as login. – If not: add the account as “db_owner”.
Important: Set the schema for the farm account to “dbo”!
8. In the Windows Services Manager (Server Manager): restart a services that has the farm account as identity. OR restart the server!
9. Now: Log on locally with the farm account!! – Yes: logon with the farm account!
10. As farm account: go into the Central Administration –> Manage Services on Server –> Start the User Profile Synchronization service!
12. Press F5 on the “Managa Services on Server” page. Maybe wait some more . Have a look into the the SharePoint log. You should find lots of message. Search for “ILM” (using ULSViewer of course).
13. Sometimes – if you are a lucky person – the “User Profile Synchronization” service is startet. – Maybe not. In this case: Start over! – Last time it took me three times to get it working!
14. At the end: remove the farm account from the SYSADMIN group!
[Update / 01/26/2011]
15. Don’t forget to reset the Security Settings (“Administrators”) for the User Profile Service Application after you recreated them. – Go into the Central Administration -> Manage Service Applications -> select your User Profile Service Application -> click “Administrators” in the Ribbon. – You may find this empty!!! This is not correct. Insert here at least the farm account with “Full Control” permissions. And don’t forget to insert the search crawl account with “Retrieve People Data for Search Crawlers” permissions. Otherwise your People Search will not work!
Please give me feedback on this! – The configuration of the User Profile Services Application is a incredible mess.