Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Friday, February 8, 2019 5:29 PM
User1 account was disabled for a day in AD and reactivated next day. But SharePoint MySite of user1 is scheduled for deletion and sending notification email to manager (14 days, 11 days and final 3 days).
How do we make sure SharePoint identifies account is activated and stops mysite deletion?
Thanks,
Abhilash
All replies (6)
Friday, February 8, 2019 6:30 PM
Hi Abhilash
e timer job responsible is called the MySite Cleanup. Here's the way it works in 2010.
- A user is deleted, disabled, or moved in AD which causes them to be missed on the next profile import. Moving a user in AD will not cause a problem unless you move them to a location not included in the Profile Sync. The trigger for all this is the profile not being included in the import, not just moving it or disabling it.
- After a user has been missed on one profile import their User Profile is marked for deletion.
- When the MySite Cleanup job runs the user profile is deleted, their MySite is scheduled for deletion in 14 days, and their manager as imported from AD will be made a site collection admin of the mysite and sent an email with a link to the mysite. They will have 14 days to clean off files etc before the mysite is deleted.
If a user is re-enabled in AD they can login again because their security was never removed from the UserInfo table. If they were merely moved in AD to an OU that isn't part of profile import they can also login. But if their UserProfile was removed then the link to their Mysite was removed and they will act like they no longer have a mysite. If its after the 14 day deletion period the mysite will be gone and a new one will be created. If its within the 14 day window SharePoint will try to create a new mysite and faile because an existing site will be at that address. Within the 14 day window you can edit the properties of their user profile to re-add the address of the Mysite. They will then be able to use the mysite normally.
If you don't want any of this automated cleanup, then just disable the MySite Cleanup job.
Please remember to click Mark as Answer on the answer if it helps you
Monday, February 11, 2019 3:24 AM
Hi Abhilash.S,
If the reply is helpful to you, you could mark the reply as answer. Thanks for your understanding.
Best regards,
Sara Fan
Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact [email protected].
SharePoint Server 2019 has been released, you can click
here to download it.
Click
here to learn new features. Visit the dedicated
forum to share, explore and talk to experts about SharePoint Server 2019.
Tuesday, February 12, 2019 11:26 AM
Thank you for the detailed answer.
just to confirm my understanding:
- AD user is disabled (lets say contract ended) and SharePoint incremental sync ran.
- User profile is deleted and mysite scheduled for deletion.
- AD user is activated (Contract extended), sync runs again.
New user profile will be created but existing mysite will not be linked and it will be deleted after 14 days?
Once 14 days is over, then the new site will be created?
Thanks,
Abhilash
Wednesday, February 13, 2019 8:45 AM
Hi Abhilash,
Currently we cannot unmark a MySite for deletion.
And there is a workaround to stop MySite deletion, we can disable the MySite Cleanup Timer Job. Go to central administration-> Monitoring ->Review Job definitions-> MySite Cleanup Timer Job.
But if you re-enable the MySite Cleanup Timer Job, it will delete the MySite for the user.
I suggest you could create a new account for the user in the Active Directory.
There is a similar post:
Best regards,
Sara Fan
Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact [email protected].
SharePoint Server 2019 has been released, you can click
here to download it.
Click
here to learn new features. Visit the dedicated
forum to share, explore and talk to experts about SharePoint Server 2019.
Friday, February 15, 2019 1:59 AM
Hi Abhilash,
If the reply is helpful to you, you could mark the reply as answer. Thanks for your understanding.
Best regards,
Sara Fan
Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact [email protected].
SharePoint Server 2019 has been released, you can click
here to download it.
Click
here to learn new features. Visit the dedicated
forum to share, explore and talk to experts about SharePoint Server 2019.
Monday, February 18, 2019 1:39 AM
Hi Abhilash,
I am checking to see how things are going there on this issue. Please let us know if you would like further assistance.
If the issue was resolved, you can mark the helpful post as answer to help other community members find the helpful information quickly.
Best regards,
Sara Fan
Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact [email protected].
SharePoint Server 2019 has been released, you can click
here to download it.
Click
here to learn new features. Visit the dedicated
forum to share, explore and talk to experts about SharePoint Server 2019.