Skip to content

Commit eb5b218

Browse files
authored
feat: Allow users to change own password in iam-group-with-policies module (#435)
1 parent 577b65e commit eb5b218

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

modules/iam-group-with-policies/policies.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ data "aws_iam_policy_document" "iam_self_management" {
3232

3333
actions = [
3434
"iam:ChangePassword",
35-
"iam:GetUser"
35+
"iam:GetLoginProfile",
36+
"iam:GetUser",
37+
"iam:UpdateLoginProfile"
3638
]
3739

3840
resources = [
@@ -153,10 +155,10 @@ data "aws_iam_policy_document" "iam_self_management" {
153155
sid = "DenyAllExceptListedIfNoMFA"
154156
effect = "Deny"
155157
not_actions = [
156-
"iam:ChangePassword",
157158
"iam:CreateVirtualMFADevice",
158159
"iam:EnableMFADevice",
159160
"iam:GetUser",
161+
"iam:GetMFADevice",
160162
"iam:ListMFADevices",
161163
"iam:ListVirtualMFADevices",
162164
"iam:ResyncMFADevice",

0 commit comments

Comments
 (0)