Permissions Required for Accessing IAM Resources
This section provides some examples of permissions required for accessing IAM resources, including permissions for users to manage their own passwords and access keys.
Allowing Read-Only Access to the IAM Console
{
"Version": "5.0",
"Statement": [{
"Effect": "Allow",
"Action": [
"iam:*:get*",
"iam:*:list*",
"iam:*:check*",
"iam:*:show*"
]
}]
}
Allowing Users to Manage Members of a User Group
{
"Version": "5.0",
"Statement": [{
"Effect": "Allow",
"Action": [
"iam:groups:listGroupsV5",
"iam:users:getUserV5",
"iam:users:listUsersV5"
]
},
{
"Effect": "Allow",
"Action": [
"iam:groups:getGroupV5",
"iam:permissions:addUserToGroupV5",
"iam:permissions:removeUserFromGroupV5"
],
"Resource": [
"iam:*:<account-id>:group:DevelopmentTeam"
]
}
]
}
Allowing Users to Manage IAM Users
{
"Version": "5.0",
"Statement": [{
"Effect": "Allow",
"Action": [
"iam:users:getUserV5",
"iam:users:listUsersV5"
]
},
{
"Effect": "Allow",
"Action": [
"iam:users:createUserV5",
"iam:users:createLoginProfileV5"
]
},
{
"Effect": "Allow",
"Action": [
"iam:users:deleteUserV5"
]
},
{
"Effect": "Allow",
"Action": [
"iam:users:updateUserV5"
]
},
{
"Effect": "Allow",
"Action": [
"iam:policies:getV5",
"iam:policies:getVersionV5",
"iam:policies:listV5",
"iam:policies:listVersionsV5",
"iam:users:attachPolicyV5",
"iam:users:detachPolicyV5",
"iam:users:listAttachedPoliciesV5"
]
}
]
}
Allowing Users to Set Account Password Policies
{
"Version": "5.0",
"Statement": [{
"Effect": "Allow",
"Action": [
"iam:securitypolicies:getPasswordPolicyV5",
"iam:securitypolicies:updatePasswordPolicyV5"
]
}]
}
Allowing Users to Perform All IAM Operations
When you grant users full permissions for IAM, the users can grant any permissions to themselves and others. Users can create IAM principals (users and trust agencies) and grant them full permissions for all resources in your account. Users with full permissions for IAM can perform any operations on all resources in your account, including deleting all resources. You should grant these permissions only to trusted administrators and enable multi-factor authentication (MFA) for these administrators.
{
"Version": "5.0",
"Statement": [{
"Effect": "Allow",
"Action": [
"IAM:*:*"
]
}]
}
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot