Temp-Contract Worker User Profile Synchronization in SharePoint 2013

Hi All,
I was wondering if anyone could provide some feedback on what is the best practice for configuring Temp or Contract worker user profile services in SharePoint 2013. We have had lot of issues within MySites when we make these types of workers AD account inactive
and then active again when they come back on projects. The user profile synchronization does not work correctly and MySites has issues loading the profile etc. Also in the same context are there best practices for Name/Title/Department changes as well. 
thank you for your feedback!
AJ
Ajay Mandal

Given what you describe I assume you've created a user profile Sync connection filter to remove disabled AD accounts from the user profile sync.  That's why you are running into problems.  When a user is missing from the import their profile is
deleted within an hour or so, but their MySite isn't deleted for 14 days (to allow time for a manager to clean it off).  If the user is reactivated within the 14 day period their old mySite is still there, but is no longer referenced by the new profile
that is created.  So When the user goes to their profile it tries to create a new mySite where one already exists.  It can't do that.
The same thing will happen if you delete the contractor's user account, but then recreate them in AD when they return.  The only way to fix it is to make sure both the profile and mySite site collection in /Personal/ have been deleted before re-adding
an old contractor.
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem.

Similar Messages

  • Reorder User Profile properties in SharePoint 2013.

    Hi, I have created custom user profile properties in SharePoint 2013 under User Profile Service Application, now I want to change the order of properties as well as also want to move OOTB properties and custom properties from one section to another section.
    Is there any Power Shell command available to move properties between sections?
    Regards,    

    Hi Prakash,
    Use the script in this blog to retrive user profile properties from a certain section.
    http://stevemannspath.blogspot.in/2013/05/sharepoint-20102013-using-powershell-to.html
    # Dynamic Settings
    $mySiteUrl = "http://mysite.company.net"
    $findProperty = "PictureUrl"
    Next, we needed to establish the server context:
    # Obtain Context based on site
    $mySiteHostSite = Get-SPSite $mySiteUrl
    $mySiteHostWeb = $mySiteHostSite.OpenWeb()
    $context = Get-SPServiceContext $mySiteHostSite
    From the context we can instantiate a ProfileManager object and retrieve all of the SharePoint User Profiles:
    # Obtain Profiles from the Profile Manager
    $profileManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($context)
    $AllProfiles = $profileManager.GetEnumerator()
    $outputCollection = @()
    Next, we loop through the profiles and retrieve the account name (for identification purposes) and the property we are interested in finding:
    # Loop through profiles and retrieve the desired property
    foreach ($profile in $AllProfiles)
    $output = New-Object System.Object
    $output | Add-Member -type NoteProperty -Name AccountName -Value $profile["AccountName"].ToString()
    $output | Add-Member -type NoteProperty -Name $findProperty -Value $profile[$findProperty]
    $outputCollection += $output
    Finally, we list out the collection items that do not have a value for the property (ie. null):
    # List all Accounts that do not contain the property
    $outputCollection | Where-Object {[bool]$_.($findProperty) -ne $true}
    FULL SCRIPT
    # Dynamic Settings
    $mySiteUrl = "http://mysite.company.net"
    $findProperty = "PictureUrl"
    Write-Host "Beginning Processing--`n"
    # Obtain Context based on site
    $mySiteHostSite = Get-SPSite $mySiteUrl
    $mySiteHostWeb = $mySiteHostSite.OpenWeb()
    $context = Get-SPServiceContext $mySiteHostSite
    # Obtain Profiles from the Profile Manager
    $profileManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($context)
    $AllProfiles = $profileManager.GetEnumerator()
    $outputCollection = @()
    # Loop through profiles and retrieve the desired property
    foreach ($profile in $AllProfiles)
    $output = New-Object System.Object
    $output | Add-Member -type NoteProperty -Name AccountName -Value $profile["AccountName"].ToString()
    $output | Add-Member -type NoteProperty -Name $findProperty -Value $profile[$findProperty]
    $outputCollection += $output
    # List all Accounts that do not contain the property
    $outputCollection | Where-Object {[bool]$_.($findProperty) -ne $true}
    In this blog, we can refer the script to create new section and new properties to this section.
    http://sergioblogs.blog.co.uk/2013/01/08/powershellscript-to-add-new-user-profile-properties-from-the-term-store-15407371/
    # PowerShell Script to Add New User Profile Properties from the Term Store
    # Get parameters
    $mySiteWebApp = Read-Host "Please enter the MySite Web Application URL"
    $termStoreSrvApp = Read-Host "Please enter the Term Store Service Application name"
    # Add SharePoint DLLs
    [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
    [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Sharepoint.Administration")
    [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Sharepoint.Taxonomy")
    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Server")
    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Server.UserProfiles")
    # Get site collection for MySite
    #$sitecollection = Get-SPSite | Where-Object {$_.Url -eq "http://yourMySiteHostURL"}
    $sitecollection = Get-SPSite | Where-Object {$_.Url -eq $mySiteWebApp}
    if($sitecollection -ne $null) {
    # Get the taxonomy session
    $taxSession = Get-SPTaxonomySession -site $sitecollection
    # Get the term store - you will need to amend the value for the correct name of your MMS Name
    #$termStore = $taxSession.TermStores["Managed Metadata Service"]
    $termStore = $taxSession.TermStores[$termStoreSrvApp]
    if($termStore -ne $null) {
    # Get the term store group for Swisslo
    $termStoreGroup = $termStore.Groups["Name of Term Store"]
    # Get the term sets - Preset with examples for terms (Customer, Function, IndustrySegment, Language, Location, Organization), amend as required
    $termSetCustomer = $termStoreGroup.TermSets["Customer"]
    $termSetFunction = $termStoreGroup.TermSets["Function"]
    $termSetIndustrySegment = $termStoreGroup.TermSets["Industry Segment"]
    $termSetLanguage = $termStoreGroup.TermSets["Language"]
    $termSetLocation = $termStoreGroup.TermSets["Location"]
    $termSetOrganization = $termStoreGroup.TermSets["Organization"]
    # Get the user profile app - change UPS Name as required
    $serviceApplication = Get-SPServiceApplication | ?{$_.TypeName -eq "User Profile Service Application"}
    $serviceContext = [Microsoft.SharePoint.SPServiceContext]::GetContext($serviceApplication.ServiceApplicationProxyGroup, [Microsoft.SharePoint.SPSiteSubscriptionIdentifier]::Default)
    $userProfileConfigManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileConfigManager $serviceContext
    $userProfilePropertyManager = $userProfileConfigManager.ProfilePropertyManager
    $userProfileTypeProperties = $userProfilePropertyManager.GetProfileTypeProperties([Microsoft.Office.Server.UserProfiles.ProfileType]::User)
    $userProfileSubTypeManager = [Microsoft.Office.Server.UserProfiles.ProfileSubTypeManager]::Get($serviceContext)
    $userProfile = $userProfileSubTypeManager.GetProfileSubtype([Microsoft.Office.Server.UserProfiles.ProfileSubtypeManager]::GetDefaultProfileName([Microsoft.Office.Server.UserProfiles.ProfileType]::User))
    $userProfileProperties = $userProfile.Properties
    $ps = $userProfileSubTypeManager.GetProfileSubtype([Microsoft.Office.Server.UserProfiles.ProfileSubtypeManager]::GetDefaultProfileName([Microsoft.Office.Server.UserProfiles.ProfileType]::User))
    $pspm = $ps.Properties
    #Create new section in User Profiles - set the 'Name of the Section' throughout next chunk of code
    Write-Host "Creating new section for 'Name of Section'...."
    $allEntries = $userProfileConfigManager.GetPropertiesWithSection();
    $sectionExists =$false
    foreach ($temp in $allEntries) {
    if($temp.Name -eq "Name of Section") {
    Write-Host "Section for 'Name of Section' already exists.";
    $sectionExists = $true;
    $section = $temp
    if ($sectionExists -ne $true){
    $section = $allEntries.Create($true);
    $section.Name = "Name of Section";
    $section.ChoiceType = [Microsoft.Office.Server.UserProfiles.ChoiceTypes]::Off;
    $section.DisplayName = "Name of Section"
    $section.Commit();
    Write-Host "Section 'Name of Section' created"
    Write-Host "Creating new properties...."
    $Privacy = "public"
    $PrivacyPolicy = "OptIn"
    $coreProperties = $userProfilePropertyManager.GetCoreProperties()
    # Setting Custom Properties below, amend names as you did above to match your fields
    # Set new Custom Property for "Customer"
    $PropertyName = "SLCustomer"
    $PropertyDisplayName = "Customer"
    $newProperty = $coreProperties.Create($false)
    $newProperty.Name = $PropertyName
    $newProperty.DisplayName = $PropertyDisplayName
    $newProperty.Type = "string"
    $newProperty.Length = "50"
    $newProperty.IsMultivalued = $true
    $newProperty.TermSet = $termSetCustomer
    # Add the new property
    $coreProperties.Add($newProperty)
    $profileTypeProp = $userProfileTypeProperties.Create($newProperty)
    $profileTypeProp.IsVisibleOnEditor = $true
    $profileTypeProp.IsVisibleOnViewer = $true
    $userProfileTypeProperties.Add($profileTypeProp)
    $profileSubTypeProp = $pspm.Create($profileTypeProp);
    $profileSubTypeProp.IsUserEditable = $true
    $profileSubTypeProp.DefaultPrivacy = $Privacy
    $profileSubTypeProp.AllowPolicyOverride
    $pspm.Add($profileSubTypeProp);
    # Set new Custom Property for "Function"
    $PropertyName = "SLFunction"
    $PropertyDisplayName = "Function"
    $newProperty = $coreProperties.Create($false)
    $newProperty.Name = $PropertyName
    $newProperty.DisplayName = $PropertyDisplayName
    $newProperty.Type = "string"
    $newProperty.Length = "50"
    $newProperty.IsMultivalued = $true
    $newProperty.TermSet = $termSetFunction
    # Add the new property
    $coreProperties.Add($newProperty)
    $profileTypeProp = $userProfileTypeProperties.Create($newProperty)
    $profileTypeProp.IsVisibleOnEditor = $true
    $profileTypeProp.IsVisibleOnViewer = $true
    $userProfileTypeProperties.Add($profileTypeProp)
    $profileSubTypeProp = $pspm.Create($profileTypeProp);
    $profileSubTypeProp.IsUserEditable = $true
    $profileSubTypeProp.DefaultPrivacy = $Privacy
    $profileSubTypeProp.AllowPolicyOverride
    $pspm.Add($profileSubTypeProp);
    # Set new Custom Property for "Industry Segment"
    $PropertyName = "SLIndustrySegment"
    $PropertyDisplayName = "Industry Segment"
    $newProperty = $coreProperties.Create($false)
    $newProperty.Name = $PropertyName
    $newProperty.DisplayName = $PropertyDisplayName
    $newProperty.Type = "string"
    $newProperty.Length = "50"
    $newProperty.IsMultivalued = $true
    $newProperty.TermSet = $termSetIndustrySegment
    # Add the new property
    $coreProperties.Add($newProperty)
    $profileTypeProp = $userProfileTypeProperties.Create($newProperty)
    $profileTypeProp.IsVisibleOnEditor = $true
    $profileTypeProp.IsVisibleOnViewer = $true
    $userProfileTypeProperties.Add($profileTypeProp)
    $profileSubTypeProp = $pspm.Create($profileTypeProp);
    $profileSubTypeProp.IsUserEditable = $true
    $profileSubTypeProp.DefaultPrivacy = $Privacy
    $profileSubTypeProp.AllowPolicyOverride
    $pspm.Add($profileSubTypeProp);
    # Set new Custom Property for "Language"
    $PropertyName = "SLLanguage"
    $PropertyDisplayName = "Language"
    $newProperty = $coreProperties.Create($false)
    $newProperty.Name = $PropertyName
    $newProperty.DisplayName = $PropertyDisplayName
    $newProperty.Type = "string"
    $newProperty.Length = "50"
    $newProperty.IsMultivalued = $true
    $newProperty.TermSet = $termSetLanguage
    # Add the new property
    $coreProperties.Add($newProperty)
    $profileTypeProp = $userProfileTypeProperties.Create($newProperty)
    $profileTypeProp.IsVisibleOnEditor = $true
    $profileTypeProp.IsVisibleOnViewer = $true
    $userProfileTypeProperties.Add($profileTypeProp)
    $profileSubTypeProp = $pspm.Create($profileTypeProp);
    $profileSubTypeProp.IsUserEditable = $true
    $profileSubTypeProp.DefaultPrivacy = $Privacy
    $profileSubTypeProp.AllowPolicyOverride
    $pspm.Add($profileSubTypeProp);
    # Set new Custom Property for "Location"
    $PropertyName = "SLLocation"
    $PropertyDisplayName = "Location"
    $newProperty = $coreProperties.Create($false)
    $newProperty.Name = $PropertyName
    $newProperty.DisplayName = $PropertyDisplayName
    $newProperty.Type = "string"
    $newProperty.Length = "50"
    $newProperty.IsMultivalued = $true
    $newProperty.TermSet = $termSetLocation
    # Add the new property
    $coreProperties.Add($newProperty)
    $profileTypeProp = $userProfileTypeProperties.Create($newProperty)
    $profileTypeProp.IsVisibleOnEditor = $true
    $profileTypeProp.IsVisibleOnViewer = $true
    $userProfileTypeProperties.Add($profileTypeProp)
    $profileSubTypeProp = $pspm.Create($profileTypeProp);
    $profileSubTypeProp.IsUserEditable = $true
    $profileSubTypeProp.DefaultPrivacy = $Privacy
    $profileSubTypeProp.AllowPolicyOverride
    $pspm.Add($profileSubTypeProp);
    # Set new Custom Property for "Organization"
    $PropertyName = "SLOrganization"
    $PropertyDisplayName = "Organization"
    $newProperty = $coreProperties.Create($false)
    $newProperty.Name = $PropertyName
    $newProperty.DisplayName = $PropertyDisplayName
    $newProperty.Type = "string"
    $newProperty.Length = "50"
    $newProperty.IsMultivalued = $true
    $newProperty.TermSet = $termSetOrganization
    # Add the new property
    $coreProperties.Add($newProperty)
    $profileTypeProp = $userProfileTypeProperties.Create($newProperty)
    $profileTypeProp.IsVisibleOnEditor = $true
    $profileTypeProp.IsVisibleOnViewer = $true
    $userProfileTypeProperties.Add($profileTypeProp)
    $profileSubTypeProp = $pspm.Create($profileTypeProp);
    $profileSubTypeProp.IsUserEditable = $true
    $profileSubTypeProp.DefaultPrivacy = $Privacy
    $profileSubTypeProp.AllowPolicyOverride
    $pspm.Add($profileSubTypeProp);
    Write-Host "Completed"
    } else {
    #Termstore not found
    Write-Host "Unable to connect to term store"
    } else {
    Write-Host "Unable to connect to MySite Web Application"
    Need more effort to change this code to work for your requirement.
    Thanks & Regards,
    Emir
    Emir Liu
    TechNet Community Support

  • User Profiles properties in SharePoint 2013

    Hello Everyone,
    Can we set User Profiles properties in SharePoint 2013 ? 

    Most of them, yes. What are you specifically looking to do?
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Аdding department export data from a survey list from user profile services in Sharepoint 2013.

    When voting, survey Sharepoint 2013, there is a field created by whom. But the name is not enough. Necessary to add the department name of the profile data in the exported list excel.

    Hi,
    The OOTB feature “Export to Spreadsheet” won’t contain the department in the exported report, we will need to create a custom one programmatically.
    We can use SharePoint Object Model to retrieve the data from the Survey and the User Profile Service, then generate an Excel Spreadsheet with the data we need.
    SharePoint Object Model -
    SPListItem class
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitem.aspx 
    Add, Update and Delete List Items Programmatically in SharePoint
    http://www.mindfiresolutions.com/Add-Update-and-Delete-List-Items-Programmatically-in-Sharepoint-372.php 
    More information about
    SharePoint Object Model:
    http://msdn.microsoft.com/en-us/library/ms473633.ASPX
    How to: Work with user profiles and organization profiles by using the server object model in SharePoint 2013
    http://msdn.microsoft.com/en-us/library/office/jj163142(v=office.15).aspx
    For about
    generating an Excel document:
    http://www.codeproject.com/Articles/20228/Using-C-to-Create-an-Excel-Document
    Or you can post another question to
    Excel for Developers for about creating an Excel file programmatically:
    http://social.msdn.microsoft.com/Forums/office/en-US/home?forum=exceldev
    Feel free to reply if there are still any questions.
    Best regards
    Patrick Liang
    TechNet Community Support

  • User profile service in SharePoint 2013

    Hi,
         I have created multiple list views.I want to assign these views to HR,Finance,Marketing dept,etc.
    Can you help me to retrieve the dept from user profile service and  assign to the views.And when the user logged in,it allows only the corresponding view to the person to edit.
    Thank you

    Hi Aditi, the following links should answer your question:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/8a449a5f-21fd-49a2-bb3c-1912fea79841/switch-views-based-on-a-person-sharepoint-user-groups-in-infopath-2010?forum=sharepointcustomizationprevious
    http://sharepoint2010blogsbydebraj.blogspot.com/2011/08/infopath-2010-switching-views-based-on.html
    http://www.infopathdev.com/forums/p/22550/78157.aspx
    http://sharepoint.stackexchange.com/questions/84363/how-to-hide-sections-of-infopath-form-based-on-group-membership
    cameron rautmann

  • User profile synchronization service wont start after SharePoint Service pack SP2

    Hi
    -Using SharePoint 2010 with 1 appserver and 2 frontend webservers on Service Pack2. (ms server 2008r2, SQLServer2008r2).
    -Farmaccount has been set to local admin on all sp servers.
    -Firstly, the User Profile Service Application runs fine and is started. Dont mix it with the User profile synchronization Service.
    Prior to installing SP2 User profile service application and user profile synchronization service were running fine.
    The first thing I did after the installation of SP2 was running the:
    -psconfig -cmd upgrade -inplace b2b -wait
    As SharePoint setup user (spadmin).
    This ran fine on the 2 front end web servers.
    However i got one fault on the Appserver:
    I have also tried:
    PSConfig.exe -cmd upgrade -inplace b2b -force -cmd applicationcontent -install -cmd installfeatures
    which led to same resulting error.
    So I tried to start the Use profile synchronization service as suggested manually by logging on with the Farmaccount, starting the user profile synchronization service through Central Administration. This led to Stuck on Starting status. 
    The windows services Forefront had status starting, then stopped.
    One question:
    Prior to starting the User profile synchronization service through Central Administration. What account and startup status should the 2 Forefront Windows Services have? (Automatic and local system?) or (Automatic and Farmaccount?) or (Disabled and Local
    system?) or (Disabled and farmaccount?). Because i know that SharePoint UPA will provision these services though Central Administration. However what is the default state prior to starting the Synchronization service?
    So i continue...
    Since it was stuck on starting i stopped it with:
    stop-SPServiceInstance -identity <upaSyncguid>
    which gave me:
    Stop-SPServiceInstance : An object of the type Microsoft.SharePoint.Administrat
    ion.SPServiceInstanceJobDefinition named "job-service-instance-36bdf2ef-58f2-45
    e5-8f78-ab75f646611a" already exists under the parent Microsoft.SharePoint.Admi
    nistration.SPTimerService named "SPTimerV4". Rename your object or delete the
    and i could fix with:
    #Stop the stopping:
    stsadm -o provisionservice -action stop -servicetype "Microsoft.Office.Server.Administration.ProfileSynchronizationService, Microsoft.Office.Server.UserProfiles,
    Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" -servicename FIMSynchronizationService
    I also removed the forefront certificate from personal - certificate store, as this is provisioned when user profile synchronization service is provisioned.
    That set the Central Administration Status on the User profile synchronization Service to disabled. Fine.
    Everytime i tried to start the user profile synchronization service (logged on as farmaccount), left it for 10-15 min and did iisreset and restart sharepoint timer service, and also tried rebooting the appserver. No change.
    A thought, is it important to restart timer service and do iisreset on the two frontend servers after trying to start the user profile synchronization service on the appserver?
    I'm getting to the point were i just want to delete the whole service application and set it up anew...
    any tips will be greatly appreaciated.
    brgs
    Bjorn

    You're very welcome, hope it helped, if not the I suggest you clear the configuration cache as follows.
    The config cache is where config settings are stored locally on the Microsoft SharePoint server, so a SQL call isn’t required.
    To clear the cache:
    Stop the SP Timer service. To do this, follow these steps:
    Click Start, point to Administrative Tools, and then click
    Services.
    Right-click SharePoint 2010 Timer, and then click Stop.
    Close the Services console.
    On the computer that is running Microsoft SharePoint Server 2010 and on which the Central Administration site is hosted, click
    Start, click Run, type explorer, and then press ENTER.
    In Windows Explorer, locate and then double-click the following folder:
    %SystemDrive%\ProgramData\Microsoft\SharePoint\Config\GUID
    Notes
    The %SystemDrive% system variable specifies the letter of the drive on which Windows is installed. By default, Windows is installed on drive C.
    The GUID placeholder specifies the GUID folder. There may be more than one of these.
    The ProgramData folder may be hidden. To view the hidden folder, follow these steps:
    On the Tools menu, click Folder Options.
    Click the View tab.
    In the Advanced settings list, click Show hidden files and folders under
    Hidden files and folders, and then click OK.
    You can also simply type this directly in the path if you do not want to show hidden files and folders.
    Back up the Cache.ini file. (Make a copy of it. DO NOT DELETE THIS FILE, Only the XML files in the next step)
    Delete all the XML configuration files in the GUID folder (DO NOTE DELETE THE FOLDER). Do this so that you can verify that the GUID folders content is replaced by new XML configuration files when the cache is rebuilt.
    Note When you empty the configuration cache in the GUID folder, make sure that you
    do NOT delete the GUID folder and the Cache.ini file that is located in the GUID folder.
    Double-click the Cache.ini file.
    On the Edit menu, click Select All.
    On the Edit menu, click Delete.
    Type 1, and then click Save on the
    File menu. (Basically when you are done, the only text in the config.ini file should be the number 1)
    On the File menu, click Exit.
    Start the Timer service. To do this, follow these steps:
    Click Start, point to Administrative Tools, and then click
    Services.
    Right-click SharePoint 2010 Timer, and then click Start.
    Close the Services console.
    Note The file system cache is re-created after you perform this procedure. Make sure that you perform this procedure on all servers in the server farm.
    Make sure that the Cache.ini file in the GUID folder now contains its previous value. For example, make sure that the value of the Cache.ini file is not 1.
    Check in the GUID folder to make sure that the xml files are repopulating. This may take a bit of time.
    BRGS
    Mishagri

  • SharePoint 2013 User Profile Synchronization service problem

    After one week trying (three clean installs of SharePoint 2013), I haven't succeed to start "User Profile Synchronization service".
    Environment:
    Domain environment with two Windows Server 2012 R2 domain controllers. 
    Fully qualified domain name matches NetBIOS name (domain.com - DOMAIN)
    Two tiers: SQL Server 2014 enterprise on Windows Server 2012 R2, and SharePoint 2013 SP1 on Windows Server 2012 R2.
    I'm using named SQL instance for SharePoint (<SQLSRV>\<SHAREPOINT>), and SQL alias on SharePoint app server.
    All SharePoint prerequisites are installed successfully.
    SharePoint 2013 is installed successfully.
    Hotfix 2760265 is installed (before configuring SharePoint)
    SharePoint is configured successfully
    Preparing MySites host:
    MySites web application is created with separate AppPool, and with address https://my.domain.com.
    Certificate used is wild-card cert (*.domain.com), issued by trusted local PKI
    Managed path "personal" is created
    Site collection of type "My Sites Host" is created at root path
    "Self-Service Site Creation" is enabled for https://my.domain.com web application
    Farm account permissions:
    Local admin at SharePoint application server
    "Log on locally" at SharePoint application server
    "Replicate Directory Changes" at domain level
    I've even tried with adding farm account into domain admins group :)
    After trying to to start user profile synchronization service, service is in "starting" state about 5-10 min, and then returns to "stopped" state. 
    ULS log shows the following exceptions:
    ILM Configuration: Error 'ERR_CONFIG_DB'
    UserProfileApplication.SynchronizeMIIS: Failed to configure MIIS post database, will attempt during next return. Exception: System.Configuration.ConfigurationErrorsException: ERR_CONFIG_DB
    UserProfileApplication.SynchronizeMIIS: Failed to configure MIIS post database, will attempt during next return. Exception: System.NullReferenceException: Object reference not set to an instance of an object
    Event viewer log:
    Event ID 6398, The Execute method of job definition Microsoft.Office.Server.UserProfiles.LMTRepopulationJob (ID <guid>) threw an exception. Unexpected exception in FeedCacheService.BulkLMTUpdate: Region not found..
    some perfnet event id 2004 errors
    Troubleshooting:
    I've tried with clearing configuration cache
    Assigning farm account to domain admins group
    Installing form scratch three times, and thousand times from different checkpoints...
    I've saw 'ERR_CONFIG_DB' like million times, but never "Started" next to "User Profile Synchronization service". Does anyone has actually succeeded to start this service? :)
    I would really appreciate any help. Thanks!
    P.S. I can't stop asking myself is it was really necessary to develop such complex, problematic, and log-tells-nothing software just for getting user info from AD? Honestly, after more then decade experience as software developer and software architect -
    I must say I doubt...
    Fat Dragon

    The full packages are available:
    http://blogs.technet.com/b/stefan_gossner/archive/2014/05/08/april-2014-cu-for-sharepoint-2013-has-finally-been-released.aspx
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • FIM EVENT ID 3 when starting User Profile Synchronization service

    I am having issues getting the USP Sync Service to start correctly in our 2013 Farm.  
    We are using a named instance for this install and from what I have read, it looks like that is the issue.
    In the ULS I find this error "ERROR  ILMPostSetupConfiguration: ILM Configuration: Validating installation of SQL Service FAILED ."
    The event log shows this error: 
    .Net SqlClient Data Provider: System.Data.SqlClient.SqlException: HostId is not registered
       at Microsoft.ResourceManagement.Utilities.ExceptionManager.ThrowException(Exception exception)
       at Microsoft.ResourceManagement.Data.Exception.DataAccessExceptionManager.ThrowException(SqlException innerException)
       at Microsoft.ResourceManagement.Data.DataAccess.RetrieveWorkflowDataForHostActivator(Int16 hostId, Int16 pingIntervalSecs, Int32 activeHostedWorkflowDefinitionsSequenceNumber, Int16 workflowControlMessagesMaxPerMinute, Int16 requestRecoveryMaxPerMinute,
    Int16 requestCleanupMaxPerMinute, Boolean runRequestRecoveryScan, Boolean& doPolicyApplicationDispatch, ReadOnlyCollection`1& activeHostedWorkflowDefinitions, ReadOnlyCollection`1& workflowControlMessages, List`1& requestsToRedispatch)
       at Microsoft.ResourceManagement.Workflow.Hosting.HostActivator.RetrieveWorkflowDataForHostActivator()
       at Microsoft.ResourceManagement.Workflow.Hosting.HostActivator.ActivateHosts(Object source, ElapsedEventArgs e)
    The server was set up with a sql alias and we also added an alias for the server itself.   Based on the below links, I did verify that the SQLInstance is empty in the registry.  
    I am at a loss on what to try next to get this working.  As a side note, I just noticed the dev farm we have (which I didn't set up) does not have the UPS configured.  I have seen references that state the only FIM  2010 SP1 works with SharePoint
    2013 and am currently investigating updating the version on our server to SP1.
    all help is appreciated!  
    Thanks,
    Natalie
    References:
    https://translate.google.com/translate?sl=es&tl=en&js=y&prev=_t&hl=en&ie=UTF-8&u=http%3A%2F%2Fmsmvps.com%2Fblogs%2Fhaarongonzalez%2Farchive%2F2013%2F03%2F07%2Funa-raz-243-n-mas-por-la-cual-no-inicializa-la-aplicaci-243-n-de-servicio-de-perfiles-de-usuario-de-sharepoint-2010.aspx&edit-text=
    http://sharepoint.licomputersource.com/2010/07/23/installing-and-configuring-user-profile-synchronization-service-in-sharepoint-2010-2/
    NLewis

    Have you tried restarting the server hosting the FIM instance?
    http://blogs.msdn.com/b/akhawaja/archive/2010/03/24/forefront-identity-manager-hostid-is-not-registered.aspx
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Anyone tried using LDIF file in the User Profile Synchronization Process?

    Microsoft pushied an article recently talking about using LDIF file in the SharePoint's user profile synchronization. 
    Configure profile synchronization using a Lightweight Directory Interchange Format (LDIF) file (SharePoint Server 2010) http://technet.microsoft.com/en-us/library/ff959234.aspx
    Currently I am unable to obtain the required "Replicate Directory Change" permission set up by the AD admin.  So I thought of exploring this alternative since I still have AD search permission right now.
    So far, I was able to set up the MOSSLDAP-LDIFMA, and use an import.ldif file to add, remove and update user profiles.  However, there are some problems that I can't resolve.  One of key problems is, the LDIF-imported records can't be
    sync'd with login-based records.
    In my environment, when a user login SharePoint via Windows authentication, a new profile would be added, under the account name "domain\username".  Meanwhile, when an LDIF record imported, there will be another profile created under the account
    name "domain:domain\username", or "domain:username".  That is, there would be two profiles for each user.
    Based on my understanding, it is very likely the user profile synchronization is based on the user's account name.  But in document and sample files provided, I can't find out any clue how to prepare the ldif file so that it will update the
    matching records, instead of creating new ones.
    Any help?  Thanks in advance.

    Has anyone managed to get this to work?
    It's nice that Microsoft offers the ability to import user profiles via LDIF into SharePoint, but it is useless if the account name is not correct after the import. I have tried multiple imports from the LDIF to get a user account to show up as  "domain\username" but
    it always ends up as "domain:domain\username", or "domain:username".  or a variation
    of these 2 with a colon separating the domain form the username. i see that multiple people have had the same problem, but unfortunetaly can't seem to find a solution. Also I see Bradley mentions that he was able to import accounts using get-QADUser,
    but he doesnt mention what the accounts import as or if it resolved the domain colon issue.
    Thanks in advance for any help or information anyone can provide.
    cheers,
    Zed

  • User Profiles Synchronization Error Event id 5553 - Every hour

    I am getting these 2 events logged in the event viewer when the user profile synch is attempted: 
    First event:
    Second Event: (although we don't always get this error with the one above)
    failure trying to synch site 6c02f82c-2029-4ca0-990b-d14786b95d88 for ContentDB 8185106e-233e-4302-bbc5-d0fb2252c64a WebApp 2b659ceb-e7b4-46d4-b2a1-1a9679a357c3. Exception message was Cannot insert duplicate key row in object 'dbo.UserMemberships' with
    unique index 'CX_UserMemberships_RecordId_MemberGroupId_SID'.
    The statement has been terminated..
    Does anyone know why this is happening and how it can be fixed?
    failure trying to synch site a12d2e6b-8227-45cd-b232-594f70d1abd1 for ContentDB 1fa8ce0f-f219-4f43-af9f-c5dc57257f4d WebApp 54c24445-8543-493c-857b-5a57df27c722. Exception message was Procedure or function profilesynch_MS_DeleteWeb has too many arguments
    specified.
    The 'profilesynch_MS_UpdateWeb' procedure attempted to return a status of NULL, which is not allowed. A status of 0 will be returned instead..

    When I run the stsadm -o sync -deleteolddatabases 5  <- no matter whst number is here I get:
     "A failure occurred during the processing of this command. Check diagnostic logs  for more information."
    There is nothing in the ULS logs
    Same problem here.
    Hoping this will fix a slightly different issue though. My issue is the profile doesn't update with changes in Active Directory and therefore there isn't anything new for the content databases
    to sync with.
    If I delete my personal profile in the UPS Service -> Manage User Profiles and then click on MySite -> MyProfile it recreates my profile with the new Active Directory values
    (without having to do a UPS Sync) and I don't know why these values exist but of cause in doing this I lose all the non AD imported values.
    I've been working on this for nearly a week now. I've learnt a lot about the UPS but still no solution. Great article on how the Sync works by the way if anyone is interested can be found here
    http://blogs.msdn.com/b/spsocial/archive/2010/05/04/conceptual-view-of-how-user-profile-synchronization-works-in-sharepoint-2010.aspx
    I have been recommended to perform stsadm -o sync -deleteolddatabases in the following post but I am unable to do so.
    http://social.technet.microsoft.com/Forums/en-US/sharepointadmin/thread/bc3cd2ff-dc12-4223-a80b-e4cae616e861

  • User Profile Synchronization not displaying Title field correctly

    Hello,
    I've an issue with User Profile Synchronization (SP 2010). The Title field is displaying correctly for most of the users but still there are few user for them the Title field is blank. However in "User Information List" it displays the Title field
    properly for those users. But in Central Administration when I check the User Profiles it's blank.I have already run Full Profile Synchronization few times in Central Administrations. Every time it's shows as successful but still no luck, still the Title field
    is blank for some profiles.
    Can anybody help on this? Thanks in advance.

    Hi ,
    Firstly , I need to verify the followings:
    Whether the title field of user information list is changed if you type a value in user profile page and perform full sync.
    Whether you have upgraded to SharePoint 2010.
    If you have upgraded to SharePoint 2010, you need to make sure the user information list is mapped or connected to AD directly. More information, please refer to the post below:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/926abf50-83a0-4e9c-a4cb-4848fcf4f88d/sharepoint-2010-userprofile-title-field-empty?forum=sharepointgeneralprevious
    If this issue still exists, please create a new User Profile Services Application, and compare the result.
    Here are some similar posts for you to take a look at:
    http://social.technet.microsoft.com/Forums/en-US/0b9b5747-80b2-4a2e-8e8e-c918bc9d6cbd/user-profile-synchronization-not-working-correctly?forum=sharepointadmin
    http://blog-sharepoint.blogspot.in/2010/08/user-information-list-not-synchronised.html
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • How to start user profile synchronization services

    Hi i am not able to start "user profile synchronization service"
    When i click on Start user profile, it will show starting, after few minutes again it will stop.
    How to resolve this

    Check permission of service account used for the user profile/sync service application.
    Ref link: http://social.msdn.microsoft.com/Forums/en-US/9062721a-4066-42f9-bd90-8c2376abad5e/user-profile-synchronization-service-got-stuck-in-starting-mode-and-stops-after-a-few-minutes?forum=sharepointadminprevious
    Thanks, Pratik Shah

  • PowerShell script doesn't appear to work as scheduled task in sharepoint 2013

    PowerShell script doesn't appear to work as scheduled task in sharepoint 2013, it works as normal manual execution
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    Hi,
    To run PowerShell Script as scheduled task in SharePoint 2013, you can take the demo below for a try:
    http://blogs.technet.com/b/meamcs/archive/2013/02/23/sharepoint-2013-backup-with-powershell-and-task-scheduler-for-beginners.aspx
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Patrick Liang
    TechNet Community Support

  • User Profile Synchronization for FBA Users in SharePoint 2010: Any successes?

    Ok, so I've got my user profiles importing using forms authentication and my configured authentication provider (ActiveDirectoryMembershipProvider) and profiles are importing (account name is domain\username).
    However when the user logs in they don't receive this profile. Instead a second one is created in the format i:0#.f|provider|username and is not synced to their AD account (our business requirements require that we use FBA for authentication against Active
    Directory).
    Has anyone tried or had any success in syncing FBA profiles?

    I opened a support case on this issue and talked with Microsoft support (for 5 days).
    What they told me is that you can NOT have both Windows accounts and FBA LDAP accounts both synchronize with the same Active Directory. The reason they say is that the account GUIDs are the same and the UPS will see that as a duplicate so it does not add
    the LDAP account after the same Windows account has been synchronized into the profile database.
    They tell me I have to write a script to synchronize the FBA LDAP accounts. I told them this is a product defect and I shouldn't have to write a script to do what the Profile Service is suppose to do out of the box. Microsoft needs to provide a hotfix for
    this defect.
    Andy Fitch

  • The User profile synchronization Full , runs for 1 second successfully

    Hi!
    On our sharepoint 2013 farm we can run the user profile incremental synchronzation timer job without issues, it runs for about 2-3 min.
    However when trying to run a Full import, we observe that the full user profile synchhronization job only runs for a second and is finished. There must be something wrong..
    The user profile service and synchronzation service are up and running. The connections to Active directory are present and working (incremental synchronization works).
    Have anyone experienced this?
    brgs 
    Bjorn

    Hello Bjorn,
    You should not run Full incremental until anything on UPA is broken. It should be only ran in case of disaster and recovery.
    Thank You, Pallav S. Srivastav ----- If this helped you resolve your issue, please mark it Answered.

Maybe you are looking for