Powershell – Finding out if user is synced with Office 365 with PowerShell On-Premise

azure-active-directorymicrosoft-office-365powershell

Is it possible to find out from on-premise AD whether user is synchronized with AzureAD (Office 365) or not? And whether when the sync for that user happened?

I am aware you can see that on Office 365 but I would like to try and find it internally.

Get-AdUser -Properties * -Filter *

Best Answer

I think the closest way to get what you want is the Azure Powershell module. You could use that scripted and locally to check if the user is online. The properties in the local active directory that Azure writes to is limited to group membership and password hashes. I don't believe the information you are looking for is stored on premise.

Related Topic