Skip to content

Get Practical

Get it, Get Practical!

  • Home
  • Blame us
  • Contact

Tag: CSV Export

Extracting the Last Sign-In Date in Azure (Entra ID) with Microsoft Graph PowerShell

images

As a Cloud Engineer, I’m always looking for ways to automate processes and streamline the management of our Azure environment. Recently, a customer approached me with a challenge: they needed to extract the last sign-in date for every user in their tenant. Although the Entra ID portal provides this information, the customer required it in a CSV format so that their security team could review the data, collaborate with user managers, and determine if certain accounts were still needed.

The Challenge

The customer needed a consolidated CSV report that contained each user’s:

  • Display Name
  • User Principal Name
  • Email Address
  • Last Sign-In Date
  • Manager Information (which includes the manager’s display name and email)

Although the Entra ID portal displays sign-in data, it has its limitations:

Data Extraction vs. Portal View

While the Entra ID portal provides sign-in data, having it in CSV format enables deeper analysis and easier sharing among teams. This approach consolidates all the required information into one single report. Currently, the portal doesn’t allow you to add a manager column in the view, meaning that extracting manager details would otherwise be an extremely manual process.

Continue reading “Extracting the Last Sign-In Date in Azure (Entra ID) with Microsoft Graph PowerShell”

Unknown's avatarAuthor João Paulo CostaPosted on 14th Feb 202519th Feb 2025Categories Azure, Microsoft, Microsoft Graph, PowerShellTags Automation, Azure, Azure AD, Azure Blog, Cloud Engineering, CSV Export, Entra ID, Identity Management, Last Sign-in, Microsoft Blog, Microsoft Graph, PowerShell, Security Auditing, Sign-In Data6 Comments on Extracting the Last Sign-In Date in Azure (Entra ID) with Microsoft Graph PowerShell

Categories

  • Azure (65)
  • Microsoft (35)
  • PowerShell (21)
  • Cisco (18)
  • CUCM (9)

Tags

  • Azure (50)
  • Cisco (18)
  • cloud (15)
  • DevOps (14)
  • Azureblog (13)

Year

  • 2025 (48)
  • 2024 (28)
  • 2023 (11)
  • 2022 (13)
  • 2021 (43)

Categories

  • Certifications
  • Cisco
    • CME – Call Manager Express
    • CUCM
    • DevOps
    • Expressway
    • Troubleshooting
    • UCCX
    • Unity
  • Infra
  • Microsoft
    • Azure
    • PowerShell
  • Microsoft Graph
  • Terraform
  • Thank You
  • Tools
  • Welcome

Enter your e-mail address to follow this blog and receive notifications of new posts by e-mail.

  • Home
  • Blame us
  • Contact
Get Practical Create a website or blog at WordPress.com
  • Subscribe Subscribed
    • Get Practical
    • Join 47 other subscribers.
    • Already have a WordPress.com account? Log in now.
    • Get Practical
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar