{"id":86165,"date":"2019-07-31T12:00:46","date_gmt":"2019-07-31T20:00:46","guid":{"rendered":"http:\/\/devblogs.microsoft.com\/scripting\/?p=86165"},"modified":"2019-07-31T07:18:30","modified_gmt":"2019-07-31T15:18:30","slug":"powertip-identify-the-last-time-a-user-was-synchronized-to-azuread","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/powertip-identify-the-last-time-a-user-was-synchronized-to-azuread\/","title":{"rendered":"PowerTip: Identify the last time a User was Synchronized to AzureAD"},"content":{"rendered":"<p>Summary: Use PowerShell to identify the property in AzureAD with the Synchronization time in AzureAD<\/p>\n<p><img decoding=\"async\" width=\"34\" height=\"34\" class=\"wp-image-86166\" src=\"http:\/\/devblogs.microsoft.com\/scripting\/wp-content\/uploads\/sites\/29\/2019\/07\/a-picture-containing-scissors-description-automat-1.jpeg\" alt=\"A picture containing scissors\n\nDescription automatically generated\" \/><\/p>\n<p>Hey, Doctor Scripto. Is there a way with PowerShell to identify when a user was last synchronized with AzureAD?<\/p>\n<p><img decoding=\"async\" width=\"34\" height=\"34\" class=\"wp-image-86167\" src=\"http:\/\/devblogs.microsoft.com\/scripting\/wp-content\/uploads\/sites\/29\/2019\/07\/word-image-1.jpeg\" \/><\/p>\n<p>Absolutely! We just need to examine the LastDirSyncTime when using the Get-Msoluser cmdlet. Here\u2019s an example below<\/p>\n<p><strong>(Get-MsolUser -UserPrincipalName &#8216;drscripto@contoso.com&#8217;).LastDirSyncTime<\/strong><\/p>\n<p><img decoding=\"async\" width=\"96\" height=\"145\" class=\"wp-image-86168\" src=\"http:\/\/devblogs.microsoft.com\/scripting\/wp-content\/uploads\/sites\/29\/2019\/07\/word-image-30.png\" \/><\/p>\n<p>PowerShell, Doctor Scripto, PowerTip, Microsoft 365<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary: Use PowerShell to identify the property in AzureAD with the Synchronization time in AzureAD 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\u2019s an example below (Get-MsolUser -UserPrincipalName &#8216;drscripto@contoso.com&#8217;).LastDirSyncTime PowerShell, [&hellip;]<\/p>\n","protected":false},"author":596,"featured_media":87096,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1739,1775,1738],"tags":[1740,1777,377,356],"class_list":["post-86165","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-doctor-scripto","category-microsoft-365","category-powershell","tag-doctor-scripto","tag-microsoft-365","tag-powershell","tag-powertip"],"acf":[],"blog_post_summary":"<p>Summary: Use PowerShell to identify the property in AzureAD with the Synchronization time in AzureAD 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\u2019s an example below (Get-MsolUser -UserPrincipalName &#8216;drscripto@contoso.com&#8217;).LastDirSyncTime PowerShell, [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/86165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/users\/596"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/comments?post=86165"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/86165\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media\/87096"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media?parent=86165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=86165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=86165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}