Automate security compliance with this n8n workflow. Monitor inactive AWS IAM users (90+ days) using the AWS n8n node and send instant alerts to Slack. A critical n8n template for DevOps.
Download this n8n workflow template and start using it instantly.
Security and Compliance Officers requiring automated auditing.
DevOps Engineers and SRE teams focused on cloud security hygiene.
System Administrators who need to enforce least-privilege policies.
Users looking for powerful, recurring infrastructure monitoring n8n templates.
Maintaining proper Identity and Access Management (IAM) hygiene is crucial for cloud security. Dormant or inactive user accounts are frequently exploited security gaps. This comprehensive n8n workflow solves this problem by automating the auditing process.
Running on a scheduled n8n trigger, this flow periodically pulls all IAM user data from AWS, filters out users that have been inactive for more than 90 days, and sends a detailed, actionable alert to a designated Slack channel. Utilizing the dedicated AWS IAM n8n node and standard n8n logic features, this solution ensures continuous monitoring without manual intervention, significantly reducing security exposure and simplifying compliance reporting.
This powerful n8n workflow operates in a six-step process, starting with a scheduled n8n trigger:
Weekly scheduler n8n trigger activates the automation, typically once per week.Get user n8n node for each user to retrieve detailed information, including the PasswordLastUsed timestamp and ARN.Filter bad data n8n node ensures that only users with usable login activity data (i.e., where PasswordLastUsed is not null) proceed down the path, effectively skipping service accounts that may not have console logins.If n8n node checks the last activity date against a time threshold (90 days). If the user's last login was before the 90-day mark, the user is deemed inactive.Send a message n8n node posts a formatted warning to a specific Slack user or channel, detailing the user's name, ARN, and last activity time, prompting security review.To deploy this security-focused n8n workflow, follow these steps:
us-east-1, regardless of where your other services run. Ensure the attached IAM policy grants iam:ListUsers and iam:GetUser permissions.User or Channel in the Slack n8n node parameters to ensure alerts go to the correct recipient. Weekly scheduler (n8n trigger): Initiates the process. Configured to run at a weekly interval, ensuring regular security checks.
Get many users (AWS IAM n8n node): Function is ListUsers. Retrieves a list of all IAM users in the account.
Get user (AWS IAM n8n node): Function is Get user. Runs in a loop for each user returned, enriching the item with metadata like ARN and PasswordLastUsed.
Filter bad data (n8n node): Filters out data items where the PasswordLastUsed field does not exist, ensuring we only evaluate accounts that could potentially have console login history.
IAM user inactive for more than 90 days? (If n8n node): Core logic. Checks if the PasswordLastUsed date is older than the 90-day threshold, routing inactive users to the notification path.
Send a message (Slack n8n node): Sends a highly formatted warning message containing the User ARN and Name to a specific Slack recipient. This n8n node handles the final alerting action.
Build an intelligent n8n workflow using an AI agent to dynamically query MongoDB for movie recommendations using aggregation pipelines, integrating the OpenAI n8n node for advanced logic.

Use this powerful n8n workflow template to monetize your private Ollama Large Language Models (LLMs) using the x402 payment protocol and the 1Shot API. This n8n workflow validates all transactions.

Secure and monetize your API services instantly using the x402 payment protocol within a custom n8n workflow. This n8n template utilizes the 1Shot API node for robust crypto payment verification and processing.

Automate Facebook Ad monitoring with this powerful n8n workflow. Use AI agents and Bright Data MCP to scrape ad performance data and send instant Gmail alerts for underperforming campaigns. This n8n workflow template saves time and minimizes missed opportunities.

Use this robust n8n workflow to schedule periodic checks of AWS EC2 instance health. Features include automated self-healing (restarts), detailed logging to Google Sheets, and multi-channel alerts (WhatsApp/Email). Start building with n8n templates today.

Empowering small and medium businesses with smart automation and practical AI, no big tech team required.







































