Forum Discussion
escupham
Oct 31, 2017Iron Contributor
Get a report of all cloud accounts
I need to get a list of all cloud only accounts (onmicrosoft.com). I can see in Azure AD User Reports the Source field will help narrow this down for me as we sync our on-prem AD to the cloud, so th...
VasilMichev
Oct 31, 2017MVP
You can use something like this:
Get-MsolUser | ? {-not $_.LastDirSyncTime}Jai Verma
Jan 20, 2020Brass Contributor
VasilMichev This is not just enough, as it also list Guest users. Also add filter to exclude guest so that you only gets enterprise cloud only users.