July 31st, 2019

PowerTip: Identify the last time a User was Synchronized to AzureAD

Doctor Scripto
Scripter

Summary: Use PowerShell to identify the property in AzureAD with the Synchronization time in AzureAD

A picture containing scissors

Description automatically generated

Hey, Doctor Scripto. Is there a way with PowerShell to identify when a user was last synchronized with AzureAD?

Absolutely! We just need to examine the LastDirSyncTime when using the Get-Msoluser cmdlet. Here’s an example below

(Get-MsolUser -UserPrincipalName ‘drscripto@contoso.com’).LastDirSyncTime

PowerShell, Doctor Scripto, PowerTip, Microsoft 365

 

 

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.

Feedback