Specifically, I want the user to be able to create/delete his own access keys ("Action": ["iam:*AccessKey*"]
) in the AWS console, but without giving them a full user list view in the IAM dashboard.
The instructions listed in the AWS documentation here add "Action": "iam:ListUsers"
for all users to the policy, which is what I'd like to avoid.
I tried using
{
"Sid":"AllowUserToListHimselfInConsole",
"Action": "iam:ListUsers",
"Effect": "Allow",
"Resource": "arn:aws:iam::593145159899:user/${aws:username}"
}
to allow the user to just list his own account, but it didn't work.
Is there a way to do what I aim for, or is the full user list a prerequisite to be able to change your own credentials in the console?