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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ