- Newest
- Most votes
- Most comments
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
