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

feita há 2 anos651 visualizações
1 Resposta
0
Resposta aceita

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 há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas