Automated Inactive Account Cleanup

Automated Inactive Account Cleanup

Automated Inactive Account Cleanup

This scheduled automation identifies inactive IAM users by reviewing login and account-age information, then routes qualifying accounts through administrative approval and activity investigation. Approved accounts are documented in Jira, checked in CloudTrail, and deleted from IAM.

IAM

Identity Management

Scheduling and Orchestration

Investigation

Trigger

A scheduled workflow execution triggers the retrieval and review of IAM users.

Outcome

For an approved inactive user, the workflow creates a Jira task, investigates activity in CloudTrail, and deletes the user from IAM.

Trigger

A scheduled workflow execution triggers the retrieval and review of IAM users.

Outcome

For an approved inactive user, the workflow creates a Jira task, investigates activity in CloudTrail, and deletes the user from IAM.

Before

Teams likely had to run recurring IAM reviews, compare last-login and account-age details, and decide which users required action. They also had to move between IAM, CloudTrail, Slack, and Jira to request approval, record the work, investigate activity, and perform deletion.

How it works

  1. On a schedule, retrieve IAM users and evaluate each account’s login status, last activity, and age against the configured inactivity rules.
  2. Send qualifying users to an administrator in Slack for an explicit approval decision; stop processing the user when approval is not received.
  3. For approved users, create a Jira task, investigate the account in CloudTrail, and delete the IAM user.

Workflow details

  • Scheduled collection: The workflow runs on a schedule, retrieves the organization’s IAM user information, extracts the relevant account details, and evaluates each user individually.
  • Inactivity screening: For every user, it checks whether the account has never been used or whether the last activity is sufficiently old, including age-based comparisons around the 30-day cleanup threshold. Users that do not meet the configured conditions are left unchanged.
  • Administrative approval: When an account qualifies for review, the workflow sends a Slack message showing the user and the last recorded AWS activity, then waits for an administrator’s response. A response other than an explicit approval ends the process for that user.
  • Investigation and tracking: After approval, the workflow creates a Jira task identifying the inactive user and indicating the last activity date, then performs a CloudTrail investigation of the account’s activity.
  • Controlled cleanup: Once the approved review path is complete, the workflow deletes the user from IAM. This replaces an ad hoc review and handoff process with a scheduled, approval-gated cleanup sequence.

What changed

Inactive-user screening now occurs during a scheduled run, with threshold checks and per-user routing handled automatically. The human decision is limited to approving or declining the Slack request, after which approved cases are documented, investigated, and cleaned up through the defined workflow.

Work removed

Recurring manual actions removed include reviewing IAM users one by one, checking last-login and account-age thresholds, identifying dormant accounts, requesting administrator approval in Slack, creating Jira tasks, initiating CloudTrail investigations, and deleting approved inactive users.

Expected outcome

A consistent scheduled process for identifying and removing approved inactive IAM users, with administrative approval, investigation, and Jira tracking applied before deletion.

Less busywork. More possibility.

Let your agents handle the routine. Make room for what comes next.

Automation intelligence, delivered monthly.

Product releases, automation playbooks, and security research — straight to your inbox. No spam, unsubscribe anytime.

© 2026 Mindflow — All rights reserved.

SOC 2 Type II
ISO 27001
GDPR
France 2030
Bpifrance
Île-de-France

Less busywork. More possibility.

Let your agents handle the routine. Make room for what comes next.

Automation intelligence, delivered monthly.

Product releases, automation playbooks, and security research — straight to your inbox. No spam, unsubscribe anytime.

© 2026 Mindflow — All rights reserved.

SOC 2 Type II
ISO 27001
GDPR
France 2030
Bpifrance
Île-de-France

Less busywork. More possibility.

Let your agents handle the routine. Make room for what comes next.

Automation intelligence, delivered monthly.

Product releases, automation playbooks, and security research — straight to your inbox. No spam, unsubscribe anytime.

© 2026 Mindflow — All rights reserved.

SOC 2 Type II
ISO 27001
GDPR
France 2030
Bpifrance
Île-de-France
To embed a website or widget, add it to the properties panel.