List of user of Azure AD

Yoooooooooo 0 Reputation points
2023-01-19T04:16:04.57+00:00

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

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,622 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dillon Silzer 33,586 Reputation points
    2023-01-19T04:30:14.53+00:00

    Hello,

    You can use the following command with PowerShell:

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

    See MSOnline Module for more information:

    https://learn.microsoft.com/en-us/powershell/module/msonline/?view=azureadps-1.0

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

    Connect-MsolService

    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.

    No comments