Skip to content

IAM policy and user info

0

Can a user be able to deactivate itself, provided all the permissions are there? Can a user be able to detach policy from itself, provided it has all the permissions? Can a user be able to delete access key for root user, even if it has all the permission ?

shall these be possible in aws s3?

2 Answers
2

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.

EXPERT

answered 10 months ago

EXPERT

reviewed 10 months ago

-1

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

EXPERT

answered 10 months ago

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

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.