{"id":562,"date":"2025-04-25T04:30:48","date_gmt":"2025-04-25T04:30:48","guid":{"rendered":"https:\/\/blog.ngocha.biz\/?p=562"},"modified":"2025-04-25T04:30:48","modified_gmt":"2025-04-25T04:30:48","slug":"change-password-of-iam-user","status":"publish","type":"post","link":"https:\/\/blog.ngocha.biz\/?p=562","title":{"rendered":"How to change the password of an IAM user in AWS?"},"content":{"rendered":"<p>In this blog, we&#8217;ll learn how to change the password of an IAM user in AWS using console and AWS CLI.<\/p>\n<p><a href=\"https:\/\/devopscube.com\/aws-iam-role-instance-profile\/\" rel=\"noreferrer\">AWS IAM<\/a> (Identity and Access Management) is a service that manages the access-related operations, such as creating users and groups, configuring permissions, and managing login credentials.<\/p>\n<div class=\"kg-card kg-callout-card kg-callout-card-blue\">\n<div class=\"kg-callout-emoji\">\ud83d\udca1<\/div>\n<div class=\"kg-callout-text\"><b><strong style=\"white-space: pre-wrap;\">Note<\/strong><\/b>: Not everyone can reset the IAM User password. Only a user who has the <code spellcheck=\"false\" style=\"white-space: pre-wrap;\">iam:UdateLogingProfile<\/code> permission or has the admin privileges only can do it. So if you are not an admin, contact the admin or who has privileges to reset the password.<\/div>\n<\/div>\n<h2 id=\"reset-aws-iam-user-password\">Reset AWS IAM User Password<\/h2>\n<p>There are two methods to reset the IAM user password.<\/p>\n<ol>\n<li>From AWS console<\/li>\n<li>Use the <a href=\"https:\/\/devopscube.com\/setup-google-cloud-clisdk\/\" rel=\"noreferrer\">CLI<\/a><\/li>\n<\/ol>\n<h3 id=\"method-1-resetting-password-from-aws-console\">Method 1: Resetting Password from AWS Console<\/h3>\n<p>Log in to the AWS console as a privileged or admin user.<\/p>\n<p>Open the IAM dashboard and click to open the <code>Users<\/code> tab from the left side panel under the <code>Access management.<\/code><\/p>\n<figure class=\"kg-card kg-image-card\"><img decoding=\"async\" src=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/04\/image-122.png\" class=\"kg-image\" alt=\"Listing IAM user from the AWS IAM console\" loading=\"lazy\" width=\"973\" height=\"536\" srcset=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w600\/2025\/04\/image-122.png 600w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/04\/image-122.png 973w\" sizes=\"auto, (min-width: 720px) 720px\"><\/figure>\n<p>Select the user for whom you want to reset the password.<\/p>\n<p>On the next page, select the <code>Security credentials<\/code> tab<\/p>\n<figure class=\"kg-card kg-image-card\"><img decoding=\"async\" src=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/04\/image-123.png\" class=\"kg-image\" alt=\"selecting the secrity credentials of the IAM user to modify the users' console access\" loading=\"lazy\" width=\"674\" height=\"378\" srcset=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w600\/2025\/04\/image-123.png 600w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/04\/image-123.png 674w\"><\/figure>\n<p>Selec the <code>Manage console access<\/code> tab from the &#8220;Console sign-in&#8221; section.<\/p>\n<figure class=\"kg-card kg-image-card\"><img decoding=\"async\" src=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/04\/image-124.png\" class=\"kg-image\" alt=\"selecting the manage console access to change the configuration of the consoel access to reset the passoword\" loading=\"lazy\" width=\"872\" height=\"305\" srcset=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w600\/2025\/04\/image-124.png 600w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/04\/image-124.png 872w\" sizes=\"auto, (min-width: 720px) 720px\"><\/figure>\n<p>On the next page, choose <code>Reset password<\/code> and select the <code>Autogenerated password<\/code> To create a temporary password, also allow the user to log in with it and reset their password to the intended one.<\/p>\n<figure class=\"kg-card kg-image-card\"><img decoding=\"async\" src=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/04\/image-125.png\" class=\"kg-image\" alt=\"selecting the resetting password option to to reset the IAM user credentials \" loading=\"lazy\" width=\"600\" height=\"444\" srcset=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/04\/image-125.png 600w\"><\/figure>\n<p>Share the temporary credentials to the user to login.<\/p>\n<figure class=\"kg-card kg-image-card\"><img decoding=\"async\" src=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/04\/image-126.png\" class=\"kg-image\" alt=\"downloading the temporary IAM user credentials to provide to the user for the login\" loading=\"lazy\" width=\"597\" height=\"390\"><\/figure>\n<p>The user will be prompted to set a new password on their first login. <\/p>\n<h3 id=\"method-2-reset-iam-user-password-using-the-aws-cli\">Method 2: Reset IAM User Password Using the AWS CLI<\/h3>\n<p>Here, the <a href=\"https:\/\/devopscube.com\/use-aws-cli-create-ec2-instance\/\" rel=\"noreferrer\">CLI<\/a> also has to be configured with the admin credentials, such as Secret Key and Secret Access Key.<\/p>\n<figure class=\"kg-card kg-image-card\"><img decoding=\"async\" src=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/04\/image-127.png\" class=\"kg-image\" alt=\"The cli output of the aws cli configuration with the user credentials \" loading=\"lazy\" width=\"1198\" height=\"450\" srcset=\"https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w600\/2025\/04\/image-127.png 600w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/size\/w1000\/2025\/04\/image-127.png 1000w, https:\/\/storage.ghost.io\/c\/5f\/2f\/5f2f4d20-2abf-4534-8d40-7aa233aedd43\/content\/images\/2025\/04\/image-127.png 1198w\" sizes=\"auto, (min-width: 720px) 720px\"><\/figure>\n<p>To reset the password from the CLI, use the following command. <\/p>\n<pre><code>aws iam update-login-profile \\\n    --user-name &lt;IAM_USER_NAME&gt; \\\n    --password &lt;NEW_PASSWORD&gt; \\\n    --password-reset-required\n<\/code><\/pre>\n<p>Replace the <code>&lt;IAM_USER_NAME&gt;<\/code> and <code>&lt;NEW_PASSWORD&gt;<\/code> with the actual values.<\/p>\n<blockquote><p>Note: To avoid the security breaches, always use a password rotation policies, enable MFA, monitor user activities using CloudTrail and mainly not providing admin credentials.<\/p><\/blockquote>\n<hr>\n<p><strong>Ngu\u1ed3n:<\/strong> <a href=\"https:\/\/devopscube.com\/change-password-of-iam-user\/\" target=\"_blank\" rel=\"noopener noreferrer\">How to change the password of an IAM user in AWS? \u2014 DevOpsCube<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Source: https:\/\/devopscube.com\/change-password-of-iam-user\/<\/p>\n","protected":false},"author":1,"featured_media":563,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-562","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops"],"_links":{"self":[{"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=\/wp\/v2\/posts\/562","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=562"}],"version-history":[{"count":0,"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=\/wp\/v2\/posts\/562\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=\/wp\/v2\/media\/563"}],"wp:attachment":[{"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=562"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=562"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ngocha.biz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=562"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}