SharePoint SE user profile deletion

ROMANCE 20 Reputation points
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?

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,096 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,980 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AllenXu-MSFT 22,761 Reputation points Microsoft Vendor
    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.

    0 comments No comments

Your answer

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