{"id":603,"date":"2025-05-06T21:38:48","date_gmt":"2025-05-06T19:38:48","guid":{"rendered":"https:\/\/www.busted.dk\/blog\/?p=603"},"modified":"2025-06-07T13:31:25","modified_gmt":"2025-06-07T11:31:25","slug":"entra-id-user-creation-date-powershell","status":"publish","type":"post","link":"https:\/\/www.busted.dk\/blog\/entra-id-user-creation-date-powershell\/","title":{"rendered":"Find and Export Entra ID User Creation Date with PowerShell"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">If you&#8217;re managing users in Microsoft Entra ID, you may need to find when an account was created, whether for reporting, audits, or tracking the user lifecycle. This information can help identify dormant accounts, confirm onboarding dates, or support compliance efforts. One efficient way to handle this is to find Entra ID user creation date with PowerShell, especially when working with larger directories.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Rather than clicking through the Entra portal, you can use PowerShell and Microsoft Graph to retrieve this data quickly. In this post, you\u2019ll learn how to get the creation date for a single user or export a full list. It is a practical method for IT admins who need better insight into account history.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1: Connect to Microsoft Graph<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">First, make sure the <strong>Microsoft.Graph<\/strong> PowerShell module is installed. If not, you can install it with:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>Install-Module Microsoft.Graph -Scope CurrentUser<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then connect to Microsoft Graph:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>Connect-MgGraph<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You\u2019ll be prompted to sign in with an account that has the necessary permissions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note on permissions<\/strong><br>To retrieve user data, your account must have appropriate permissions in Microsoft Graph. For reading user creation dates, the User.Read.All permission is typically required. If you&#8217;re using delegated access, make sure your role or app registration includes this scope.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 2: Find Entra ID User Creation Date with PowerShell<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To retrieve the creation date of a specific user, run:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">G<code>et-MgUser -UserId user@contoso.com | Select-Object CreatedDateTime,DisplayName<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Example output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>CreatedDateTime       DisplayName<br>-------------------   ----------------<br>2021-03-22T14:10:30Z  Jane Smith<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The <strong>CreatedDateTime<\/strong> field shows when the user account was created in Entra ID.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Export All Entra ID User Creation Dates with PowerShell<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To list all users and export their creation dates to a CSV file, use:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>Get-MgUser -All -Property CreatedDateTime,DisplayName |<br>    Select-Object DisplayName,UserPrincipalName,CreatedDateTime |<br>    Export-Csv -Path \"UserCreationDates.csv\" -NoTypeInformation -Encoding UTF8<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This will generate a CSV file with the display name, username, and creation date for every user in your directory.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Optional: Filter users by creation date<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Want to focus only on recent accounts? You can filter for users created within a specific time frame like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-MgUser -All -Property DisplayName,CreatedDateTime |<br>Where-Object { $_.CreatedDateTime -ge (Get-Date).AddDays(-30) } |<br>Select-Object DisplayName,CreatedDateTime<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This example filters for users created in the last 30 days. Adjust the number to suit your needs.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Bonus: Export more user details<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If you&#8217;re already exporting data, consider adding more attributes for reporting or documentation purposes:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-MgUser -All -Property DisplayName,UserPrincipalName,CreatedDateTime,AccountEnabled |<br>Select-Object DisplayName,UserPrincipalName,CreatedDateTime,AccountEnabled |<br>Export-Csv -Path \"UserDetails.csv\" -NoTypeInformation -Encoding UTF8<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This gives you an overview that includes account status along with creation dates.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Final Note<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">PowerShell offers a fast and reliable way to extract Entra ID user creation date information. Whether you&#8217;re troubleshooting, auditing, or managing account lifecycles, having access to this data can simplify your work and improve visibility across your environment.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By using this method to find Entra ID user creation date with Powershell, you can streamline reporting and documentation. Exporting the results to a CSV file makes it easy to share or review the data.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re managing users in Microsoft Entra ID, you may need to find when an account was created, whether for reporting, audits, or tracking the user lifecycle. This information can help identify dormant accounts, confirm onboarding dates, or support compliance efforts. One efficient way to handle this is to find Entra ID user creation date &#8230; <a title=\"Find and Export Entra ID User Creation Date with PowerShell\" class=\"read-more\" href=\"https:\/\/www.busted.dk\/blog\/entra-id-user-creation-date-powershell\/\" aria-label=\"Read more about Find and Export Entra ID User Creation Date with PowerShell\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":618,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49,15],"tags":[],"class_list":["post-603","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-entra","category-powershell"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Find Entra ID user creation date with Powershell<\/title>\n<meta name=\"description\" content=\"Find Entra ID user creation date with PowerShell and Microsoft Graph. Perfect for audits, reports, and user lifecycle tracking.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.busted.dk\/blog\/entra-id-user-creation-date-powershell\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Peter\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/entra-id-user-creation-date-powershell\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/entra-id-user-creation-date-powershell\\\/\"},\"author\":{\"name\":\"Peter\",\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/#\\\/schema\\\/person\\\/6f1b95dddb508da8b018577701c33c9d\"},\"headline\":\"Find and Export Entra ID User Creation Date with PowerShell\",\"datePublished\":\"2025-05-06T19:38:48+00:00\",\"dateModified\":\"2025-06-07T11:31:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/entra-id-user-creation-date-powershell\\\/\"},\"wordCount\":445,\"publisher\":{\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/#\\\/schema\\\/person\\\/6f1b95dddb508da8b018577701c33c9d\"},\"image\":{\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/entra-id-user-creation-date-powershell\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/Find-user-creation-date-in-Entra-ID.png\",\"articleSection\":[\"Entra\",\"PowerShell\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/entra-id-user-creation-date-powershell\\\/\",\"url\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/entra-id-user-creation-date-powershell\\\/\",\"name\":\"Find Entra ID user creation date with Powershell\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/entra-id-user-creation-date-powershell\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/entra-id-user-creation-date-powershell\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/Find-user-creation-date-in-Entra-ID.png\",\"datePublished\":\"2025-05-06T19:38:48+00:00\",\"dateModified\":\"2025-06-07T11:31:25+00:00\",\"description\":\"Find Entra ID user creation date with PowerShell and Microsoft Graph. Perfect for audits, reports, and user lifecycle tracking.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.busted.dk\\\/blog\\\/entra-id-user-creation-date-powershell\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/entra-id-user-creation-date-powershell\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/Find-user-creation-date-in-Entra-ID.png\",\"contentUrl\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/Find-user-creation-date-in-Entra-ID.png\",\"width\":1536,\"height\":553,\"caption\":\"Find Entra ID user creation date with PowerShell and Microsoft Graph\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/\",\"name\":\"Peter Busted\",\"description\":\"A blog about my daily work with tech and more, running since 2008\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/#\\\/schema\\\/person\\\/6f1b95dddb508da8b018577701c33c9d\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/#\\\/schema\\\/person\\\/6f1b95dddb508da8b018577701c33c9d\",\"name\":\"Peter\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/cropped-f819f80c-bdd3-4653-87cc-89c692229010.webp\",\"url\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/cropped-f819f80c-bdd3-4653-87cc-89c692229010.webp\",\"contentUrl\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/cropped-f819f80c-bdd3-4653-87cc-89c692229010.webp\",\"width\":1790,\"height\":357,\"caption\":\"Peter\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/cropped-f819f80c-bdd3-4653-87cc-89c692229010.webp\"},\"url\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/author\\\/peter\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Find Entra ID user creation date with Powershell","description":"Find Entra ID user creation date with PowerShell and Microsoft Graph. Perfect for audits, reports, and user lifecycle tracking.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.busted.dk\/blog\/entra-id-user-creation-date-powershell\/","twitter_misc":{"Written by":"Peter","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.busted.dk\/blog\/entra-id-user-creation-date-powershell\/#article","isPartOf":{"@id":"https:\/\/www.busted.dk\/blog\/entra-id-user-creation-date-powershell\/"},"author":{"name":"Peter","@id":"https:\/\/www.busted.dk\/blog\/#\/schema\/person\/6f1b95dddb508da8b018577701c33c9d"},"headline":"Find and Export Entra ID User Creation Date with PowerShell","datePublished":"2025-05-06T19:38:48+00:00","dateModified":"2025-06-07T11:31:25+00:00","mainEntityOfPage":{"@id":"https:\/\/www.busted.dk\/blog\/entra-id-user-creation-date-powershell\/"},"wordCount":445,"publisher":{"@id":"https:\/\/www.busted.dk\/blog\/#\/schema\/person\/6f1b95dddb508da8b018577701c33c9d"},"image":{"@id":"https:\/\/www.busted.dk\/blog\/entra-id-user-creation-date-powershell\/#primaryimage"},"thumbnailUrl":"https:\/\/www.busted.dk\/blog\/wp-content\/uploads\/2025\/05\/Find-user-creation-date-in-Entra-ID.png","articleSection":["Entra","PowerShell"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.busted.dk\/blog\/entra-id-user-creation-date-powershell\/","url":"https:\/\/www.busted.dk\/blog\/entra-id-user-creation-date-powershell\/","name":"Find Entra ID user creation date with Powershell","isPartOf":{"@id":"https:\/\/www.busted.dk\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.busted.dk\/blog\/entra-id-user-creation-date-powershell\/#primaryimage"},"image":{"@id":"https:\/\/www.busted.dk\/blog\/entra-id-user-creation-date-powershell\/#primaryimage"},"thumbnailUrl":"https:\/\/www.busted.dk\/blog\/wp-content\/uploads\/2025\/05\/Find-user-creation-date-in-Entra-ID.png","datePublished":"2025-05-06T19:38:48+00:00","dateModified":"2025-06-07T11:31:25+00:00","description":"Find Entra ID user creation date with PowerShell and Microsoft Graph. Perfect for audits, reports, and user lifecycle tracking.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.busted.dk\/blog\/entra-id-user-creation-date-powershell\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.busted.dk\/blog\/entra-id-user-creation-date-powershell\/#primaryimage","url":"https:\/\/www.busted.dk\/blog\/wp-content\/uploads\/2025\/05\/Find-user-creation-date-in-Entra-ID.png","contentUrl":"https:\/\/www.busted.dk\/blog\/wp-content\/uploads\/2025\/05\/Find-user-creation-date-in-Entra-ID.png","width":1536,"height":553,"caption":"Find Entra ID user creation date with PowerShell and Microsoft Graph"},{"@type":"WebSite","@id":"https:\/\/www.busted.dk\/blog\/#website","url":"https:\/\/www.busted.dk\/blog\/","name":"Peter Busted","description":"A blog about my daily work with tech and more, running since 2008","publisher":{"@id":"https:\/\/www.busted.dk\/blog\/#\/schema\/person\/6f1b95dddb508da8b018577701c33c9d"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.busted.dk\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.busted.dk\/blog\/#\/schema\/person\/6f1b95dddb508da8b018577701c33c9d","name":"Peter","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.busted.dk\/blog\/wp-content\/uploads\/2025\/03\/cropped-f819f80c-bdd3-4653-87cc-89c692229010.webp","url":"https:\/\/www.busted.dk\/blog\/wp-content\/uploads\/2025\/03\/cropped-f819f80c-bdd3-4653-87cc-89c692229010.webp","contentUrl":"https:\/\/www.busted.dk\/blog\/wp-content\/uploads\/2025\/03\/cropped-f819f80c-bdd3-4653-87cc-89c692229010.webp","width":1790,"height":357,"caption":"Peter"},"logo":{"@id":"https:\/\/www.busted.dk\/blog\/wp-content\/uploads\/2025\/03\/cropped-f819f80c-bdd3-4653-87cc-89c692229010.webp"},"url":"https:\/\/www.busted.dk\/blog\/author\/peter\/"}]}},"_links":{"self":[{"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/posts\/603","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/comments?post=603"}],"version-history":[{"count":11,"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/posts\/603\/revisions"}],"predecessor-version":[{"id":656,"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/posts\/603\/revisions\/656"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/media\/618"}],"wp:attachment":[{"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/media?parent=603"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/categories?post=603"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/tags?post=603"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}