Friday, May 3, 2013

My Site Cleanup Job and "user not found" error message in SharePoint 2010


My Site Cleanup Job:
The timer Job "My Site Cleanup Job" Which Runs hourly, looks for all users marked for deletion during profile import (Incremental or Full which doesn't matters) and deletes their profiles from the profile database. It also assigned ownership to the deleted profile’s manager(if available) and an email is sent to the manager.

When the My site cleanup job deletes the user profile, it also deletes all profile specific data including any user Quick Links, Colleague Tracker, Profile Picture, etc. (But the users documents in My site will be in safe)

When My site will be deleted?
Although it sounds like "My Site Cleanup Job" it doesn't actually deletes my sites. It only removes the user profile from the profile store and changes the my site owner to the user’s manager if there is one.  My Site will only be deleted if the Automatic Site Deletion is enabled. If you want to enforce the Automatic deletion of my sites you can use "Site Use Confirmation and Deletion”
(Central Administration > Application Management > Site Use Confirmation and Deletion)

If an user profile is missing during profile import, and if you try to get into My Site's URL by:  http://mysite.company.com/personal/person.aspx?accountname=domain\user – SharePoint will display "user not found" error message.
SharePoint user not found error
which is obvious! Change the secondary owner if you want to access the user's My site.

As the user is not found, You can't change the secondary owner from central Admin web interface. Use stsadm: E.g.

stsadm -o siteowner -url https://mysite.company.com/personal/E372488 -secondarylogin global\salaudeen"

1 comment:

  1. I have SPFarmadmin as the second owner for all the My Sites but still not able to access any of the home pages of the respective My Sites. I can only check their respective site content using _layout.

    Please help how to resolve for all these 2112 my Site collections. How can I make only the personal my user and spfarmadmin able to browse their respective My Site collection user.
    Request you to reply to my email id: BharatKV@softura.com OR thejuniorgod@gmail.com

    ReplyDelete