IAM user password last changed date using boto3

0

Hi Team, Me looking to get the data on which password last changed for IAM users. get_login_profile gives the values on the day first time password created but doesn't provide the recent change date.

Regards, Nikhil Shah

preguntada hace 2 años651 visualizaciones
1 Respuesta
0
Respuesta aceptada

Hi @AWS-User-1576695,

IAM User's password does not appear to be accessible via any API call and it is supplied as password_last_changed in the **Credentials Report **that can be downloaded from the AWS IAM management console.

aws iam list-users --query "Users[?UserName=="<user>"].PasswordLastUsed" should give the timestamp when the password was last changed

If the Answer is helpful, please click Mark as answered, this can be beneficial to other community members.

profile picture
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas