deleted user in SharePoint online is still present

sns 9,246 Reputation points
2021-02-06T12:26:14.703+00:00

I still see deleted user in SharePoint online, how to get rid of it?
is it taken care automatically by MS? or Do I need to run script, if yes can you please share the script to delete the accounts in SPOnline which were already deleted in Azure AD.

and 2 more questions:
once it is deleted in Azure AD, it supposted to delete in SPonline but not deleting. how many days it takes to delete?
if we have add any properties in Azure AD does it reflect in SP? and is it vice versa? and how much time takes to reflect?

Please help.

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

Accepted answer
  1. JoyZ 18,111 Reputation points
    2021-02-08T02:59:19.887+00:00

    Hi @sns ,

    When we delete the user from Microsoft 365 admin center or Azure AD, their related UserInfo information is not removed.

    To completely remove people from SharePoint, we could use the way mentioned by trevor.

    Or run the following command in SharePoint Online Management Shell:

    Remove-SPOUser -Site https://fabrikam.sharepoint.com -LoginName ******@fabrikam.com  
    

    When we update the user property in Azure AD, it will be reflected in SharePoint online UPA.

    The profile properties that are synced by the UPA sync process are not configurable. Synchronization times will vary based on workloads.

    More information for your reference:

    https://learn.microsoft.com/en-us/sharepoint/remove-users#remove-people-from-the-userinfo-list

    https://learn.microsoft.com/en-us/sharepoint/user-profile-sync


    If an Answer is helpful, please click "Accept Answer" and upvote it.

    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 additional answer

Sort by: Most helpful
  1. trevorseward 11,711 Reputation points
    2021-02-06T15:31:13.477+00:00

    In SharePoint, even when a user is deleted, a record is contained within the site collection's user information list. You can go to https://tenantName.sharepoint.com/sites/siteName/_layouts/15/people.aspx?MembershipGroupId=0. Find the user you wish to purge from the site, then go to Actions -> Delete Users from Site Collection. This marks their account as deleted from the site.

    The user may still show up, for example in Created or Modified columns as SharePoint maintains the record for referential integrity purposes.

    SharePoint Online sites do not get deleted automatically. The user's OneDrive site will. It is 30 days by default but can be extended.

    https://learn.microsoft.com/en-us/onedrive/retention-and-deletion#the-onedrive-deletion-process

    1 person found this answer helpful.

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.