SOLVED

how can we remove deleted AD user completely from ODFB and SharePoint online

Deleted
Not applicable

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. 

2 Replies
best response

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

1 best response

Accepted Solutions