SOLVED

Get all users in Azure AD recycle bin

%3CLINGO-SUB%20id%3D%22lingo-sub-3001946%22%20slang%3D%22en-US%22%3EGet%20all%20users%20in%20Azure%20AD%20recycle%20bin%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3001946%22%20slang%3D%22en-US%22%3E%3CP%3EDoes%20anyone%20know%20if%20there%20is%20a%20way%20of%20pulling%20back%20a%20list%20of%20users%20who%20are%20in%20the%20Azure%20AD%20recycle%20bin%3F%3C%2FP%3E%3CP%3EI've%20had%20a%20look%20through%20the%20cmdlets%20and%20can't%20see%20anything%20obvious.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3001946%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Active%20Directory%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EWindows%20PowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3002163%22%20slang%3D%22en-US%22%3ERe%3A%20Get%20all%20users%20in%20Azure%20AD%20recycle%20bin%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3002163%22%20slang%3D%22en-US%22%3EHello%20Dave%2C%3CBR%20%2F%3EYou%20can%20use%20the%20MSOnline%20module%20(it%20has%20been%20recently%20updated%2C%20more%20info%20%3CA%20href%3D%22https%3A%2F%2Fmsshells.net%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmsshells.net%3C%2FA%3E)%3CBR%20%2F%3E%3CBR%20%2F%3EGet-MsolUser%20-ReturnDeletedUsers%3C%2FLINGO-BODY%3E
New Contributor

Does anyone know if there is a way of pulling back a list of users who are in the Azure AD recycle bin?

I've had a look through the cmdlets and can't see anything obvious.

 

thanks

2 Replies
best response confirmed by Dave_Steer (New Contributor)
Solution
Hello Dave,
You can use the MSOnline module (it has been recently updated, more info https://msshells.net)

Get-MsolUser -ReturnDeletedUsers
Thats great, thanks for the quick response