May 30 2018
11:14 AM
- last edited on
Feb 01 2023
01:22 PM
by
TechCommunityAP
May 30 2018
11:14 AM
- last edited on
Feb 01 2023
01:22 PM
by
TechCommunityAP
Hello Everyone,
Is there a way to remove delete user xyz@abc.com from all OneDrive sites as well as any SharePoint online sites completely. The reason why I am asking is that, even after the deletion of the user from AD few months back, still we can see that user in some of the sites as Site collection admin. Its very hard to go one by one site and remove it and even if I try that I am getting an error as user does not exists.
May 30 2018 02:53 PM
SolutionJun 04 2018 05:40 AM
Hello Raj,
Not sure how you removed the user from AD in the first step. Once the AD account is removed, then the account in office 365 moves over to the RecycleBin.
I would suggest is to logon to Office 365 powershell console and delete the user from the recyclebin with following command
Remove-MsolUser -UserPrincipalName abc@xyz.com -RemoveFromRecycleBin -Force
See if that removes your user object trace from all collections including OD4B
Regards,
Prashant D
May 30 2018 02:53 PM
Solution