- Newest
- Most votes
- Most comments
Hello.
If you are not using a deny action in an SCP in your AWS account, you can modify your own IAM policy if you have "AdministratorAccess" attached to your IAM user.
If inactive means deleting an IAM user, then it can be deleted if "AdministratorAccess" is attached.
Therefore, I recommend that anyone other than the AWS account administrator attach only the minimum necessary IAM policies.
However, an IAM user cannot issue access keys for the AWS account root user.
Root user operations can only be performed by the root user.
https://docs.aws.amazon.com/aws-managed-policy/latest/reference/AdministratorAccess.html
shall these be possible in aws s3?
I don't understand the meaning of this sentence, but since S3 and IAM are separate services, an IAM user with only S3 permissions attached cannot edit their own IAM policy.
In AWS Identity and Access Management (IAM), certain actions remain restricted regardless of the permissions assigned to a user. Specifically, an IAM user cannot deactivate or delete its own account, cannot detach policies from itself in a manner that would revoke its own access, and cannot manage or remove the root user’s access keys. These safeguards are intentionally enforced by AWS to preserve account integrity and ensure security.
https://docs.aws.amazon.com/IAM/latest/UserGuide/id_users_remove.html
https://docs.aws.amazon.com/IAM/latest/UserGuide/id_root-user_manage_delete-key.html
https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html
Relevant content
asked a year ago

IAM users can detach their own IAM policies if the policy that manipulates the IAM policy is attached.