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

已提问 2 年前651 查看次数
1 回答
0
已接受的回答

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
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则