Last login date for all users in Azure AD

GuestGuivenchi 105 Reputation points
2023-12-16T00:30:16.24+00:00

Good Afternoon, I manage a cloud-based Active Directory. I want to download a list of all users with the last login date.
do anyone have a PowerShell script?

Thank you.

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,943 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
24,588 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 47,786 Reputation points
    2023-12-16T03:18:37.2133333+00:00

    You'll find a number of PowerShell scripts that use the Get-AzureADAuditSignInLogs cmdlet or Microsoft Graph just by searching for the Get-AzureADAuditSignInLogs name.

    For example: https://woshub.com/check-user-sign-logs-azure-ad/


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.