Skip to content

after deactivating an user, does the policy attached to it also get detached?

0

I attached a policy to a user, and deactivated the user after sometime. Once I activate the user, does the policy attached to the user earlier reflect back or not?

1 Answer
1

When you deactivate an IAM user in AWS, the policies attached to that user are not automatically detached. Deactivation typically involves creating and attaching a deny policy to prevent the user from accessing AWS services, rather than removing existing policies.

If you reactivate the user later by removing the deny policy, the previously attached policies should still be in place. This means that when you activate the user again, the policies that were attached before deactivation should still be reflected and active for that user.

However, it's important to note that if you had manually detached any policies during the deactivation period, those would not automatically reattach upon reactivation. In such cases, you would need to explicitly reattach those policies.

It's always a good practice to review the user's permissions after reactivation to ensure they have the intended level of access. This helps maintain proper security and access control in your AWS environment.
Sources
Remove or deactivate an IAM user - AWS Identity and Access Management
Deprecated AWS managed policies - AWS Identity and Access Management

answered 2 years ago

EXPERT

reviewed 2 years ago

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.