Forum Discussion
Ooster1
May 08, 2019Copper Contributor
PasswordLastChanged or PwdLastSet
I'm trying to get the fields PasswordLastChanged or PwdLastSet so i can notify my users when they have to change their password but i dont know how to get that fields
Kevin_Morgan
May 24, 2019Iron Contributor
You can use powershell command Get-MsolUser from Azure AD v1 module to get PwdLastSet value.
Get-MsolUser -All | Select DisplayName,UserPrincipalName,LastPasswordChangeTimeStamp
The LastPasswordChangeTimeStamp field is still not supported in latest Azure AD v2 module (Get-AzureADUser) and its base service Graph Api.
You can refer below post for more info.
https://www.morgantechspace.com/2019/05/how-to-get-password-last-set-time-for-office-365-users.html