'How get reset password and reset password date with python Script

I want to run a script which will pullout the details of the IAM users details with reset password(old password) and reset password date, i didn't find anything about this can anyone please show how fetch details.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source