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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠