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...
Paul Cunningham
Nov 02, 2017Iron Contributor
If you're using the newer AzureAD module:
Get-AzureADUser | Where {$_.DirSyncEnabled -ne $true}Interestingly, the values appear to be either "True" or "null", not "False.
PS C:\> Get-AzureADUser | Group-Object -Property:DirSyncEnabled
Count Name Group
----- ---- -----
98 True {class User {...
2 {class User {...