List of user of Azure AD

Yoooooooooo 0 Reputation points

Hi everyone,

Please you help with this question, i need get a list of all users of Azure AD, where show last date change password due to password expiration, without command, i can get list of user with date of last change of password, but when i export this information dont show date of change password.

Additionally, i would like to know that profile type need for get this information.

Thanks very much

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,389 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dillon Silzer 54,286 Reputation points


    You can use the following command with PowerShell:

    Get-MsolUser -All | Select DisplayName,UserPrincipalName,LastPasswordChangeTimeStamp

    See MSOnline Module for more information:

    To connect to MSOnline, you will first need to run the command:


    If you need to export to CSV:

    Get-MsolUser -All | Select DisplayName,UserPrincipalName,LastPasswordChangeTimeStamp | Export-Csv -Path .\Path\filename.csv

    Learn more about Export-Csv

    If this is helpful please accept answer.

    0 comments No comments