Users left the company ,but we still see their ID’s in Teams, OneDrive and SharePoint online sites

Dhamley 31 Reputation points

Hi Team
Need a bit info/clarification on below query
Users left the company ,but we still see their ID’s in Teams, OneDrive and SharePoint online sites. Would like to know any manual activity needs to be taken care here from our end or its bug in M365.
And Same in SharePoint onprem as well ?

+++if he/she uploaded/modified some files and folders ,which name it shows under “created by” and “modified by” when they left the company ?

Does/why a timer job is not taking care of these things?

Thanks in Advance

A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,247 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,893 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Yanli Jiang - MSFT 23,811 Reputation points Microsoft Vendor

    Hello @Dhamley ,

    For SharePoint Online, when we delete the user from Microsoft 365 admin center or Azure AD, their related UserInfo information is not removed. You should go here to delete the user from site collection. But the user may still show up in “created by” and “modified by” columns as SharePoint maintains the record for referential integrity purposes.
    For OneDrive, May I know when did you delete the users?
    After the user is deleted from AAD, the account deletion is synchronized to SharePoint. the OneDrive Clean Up Job runs, and the OneDrive is marked for deletion. The deleted user will appear in the Microsoft 365 admin center for 30 days. The default retention period for OneDrive is also 30 days, but you can change this in the SharePoint admin center . More information about OneDrive deletion process, please refer to the article: OneDrive retention and deletion - OneDrive | Microsoft Learn
    More information for your reference:
    For Teams,according to my test, after the account is permanently deleted in AAD, it takes a while (maybe several hours), and the account cannot be searched in Teams. However, the previous chat history will still be displayed and needs to be deleted manually.

    Yanli Jiang


    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.

    1 person found this answer helpful.

  2. risolis 8,706 Reputation points


    I hope you are doing fine.

    Do you have any other concern that we can address so far?


    0 comments No comments