SharePoint SE user profile deletion

Anonymous
2025-01-21T06:46:20.23+00:00

We are using Windows AD authentication now and has build our user profile service in our farm. If we want to remove several users from sharepoint, just delete them from AD? And how about their personal sites, how to remove personal sites also?

Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments

Answer accepted by question author
AllenXu-MSFT 24,991 Reputation points Moderator
2025-01-22T02:13:31.2366667+00:00

Hi @ROMANCE,

You should run a full import after deleting users in AD. “Out of Scope” (disabled, filtered out, moved to a non-imported OU) users do not have their profiles automatically cleaned up by an incremental import.  With AD Import, we don’t use the Sync database to store “state” information about each user.  As such, the only way AD Import can tell if a user has fallen “out of scope” is to import them.  If the user object has not changed in AD, an incremental import will not pick them up.  Luckily, AD Import is fast, so running a Full Import is not a big deal.

Instead of immediately deleting profiles that are marked for deletion, My site clean up job schedules the profiles to be deleted after 30 days. The 30-day setting is hard-coded. There is no way to change it. If for some reason you can’t wait 30 days to get rid of these profiles, then you’ll have to delete them via PowerShell script.

For more details, take a reference to this article: SharePoint: The complete guide to user profile cleanup.


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.