Resources · n8n integration

AWS Cognito n8n integrationAutomate AWS Cognito with n8n.

Your user directory should not need someone clicking in the AWS console to stay current. The AWS Cognito n8n integration gives a workflow 13 operations across 3 resources: users, groups and user pools. No trigger node ships for Cognito, so a schedule or an incoming call starts the run.

Verified Trustpilot reviews · AI, automation & growth agency

Why automate

What does the AWS Cognito n8n integration actually do?

AWS Cognito holds user pools, the directories where an application stores its accounts and the groups that sort them. The n8n node talks to that directory from inside a workflow: 13 operations spread over 3 resources, users, groups and user pools. Work that would otherwise mean a console tab and a lot of clicking runs on a schedule or on demand, with a single AWS credential saved once in n8n.

Onboarding without opening the console. A new hire shows up as a row in the HR file, the workflow reads it from Google Sheets, runs user.create with the work email as User Name, then chains user.addToGroup so the account lands in the right group before anyone asks for access.

An access review that writes itself. Once a month a Schedule Trigger, the n8n node that starts a workflow at a fixed interval, fires group.getAll with Include Users turned on. The result goes into Postgres next to last month's snapshot, and the difference lands in Slack as a short message rather than a screenshot in an email thread.

Offboarding that actually finishes. A ticket moves to done, the workflow calls user.removeFromGroup for each group the person sat in, then user.delete. Nobody has to remember the second half of the checklist two weeks later.

The node covers the 13 operations listed further down. For any other endpoint of the AWS API, the HTTP Request node calls it directly and reuses the same AWS credential through predefined authentication, so there is no second set of keys to manage.

Two practical points. Listing is paginated: with Return All off, n8n stops at Limit, so a busy pool comes back partial unless you turn it on. And since Cognito has no trigger node in n8n, a workflow starts from a Schedule Trigger, from an n8n Webhook (a URL another service calls when something happens on its side), or from the trigger of another tool. The n8n review goes into that platform side in more depth.

Connect

How do you connect AWS Cognito to n8n?

  1. 01

    Create an access key in AWS

    Open the IAM console, select your user name in the navigation bar on the upper right, then Security credentials. In the Access keys section, select Create access key, choose your use case (pick Other if nothing fits), then Next. Set a description tag such as n8n integration so the key is recognisable later, and create it. Reveal the Access Key ID and the Secret Access Key.

  2. 02

    Save the AWS credential in n8n

    In n8n, go to the Credentials menu and add an AWS (IAM) credential, which is n8n's stored set of connection details for a service. Select your AWS Region, then paste the Access Key ID and the Secret Access Key. You do this once: every workflow that touches an AWS node offers the same credential in its dropdown, so there is nothing to paste twice.

  3. 03

    Point the node at a user pool

    Drop an AWS Cognito node into the canvas, pick the credential, then choose the Resource (User, Group or User Pool) and the Operation. Every operation starts with User Pool, which you select from the list n8n loads from your account. It also accepts an expression, n8n's way of pulling a value from the previous node, written as {{ $json.userPoolId }} when the pool is decided upstream.

Actions

What can the AWS Cognito node do?

The AWS Cognito node exposes 13 operations across 3 resources. For each one: the node as you configure it in n8n, the required fields, and our field notes.

Resources × operations matrix
ResourceCreateGetGet ManyUpdateDeleteAdd to GroupRemove From Group
Group✓✓✓✓✓
User✓✓✓✓✓✓✓
User Pool✓

Group

5 operations
01

Create group

group.create

What you see in n8n

Notes & use cases

Adds a new group to a user pool and returns it, empty and ready for members.

Key parameters

  • User Pool: the pool that will hold the group, chosen from the dropdown n8n fills from your AWS account.
  • Group Name: the name of the new group, typed once and reused everywhere else in the workflow.
  • Precedence: optional, in Additional Fields, a number where lower values mean higher priority.
  • Role ARN: optional, the role ARN for the group, used for setting claims in tokens, in the shape arn:aws:iam::123456789012:role/GroupRole.
Use cases
a private beta opens, and the workflow creates the group first so the invitations that follow have somewhere to put people.
02

Delete group

group.delete

What you see in n8n

Notes & use cases

Deletes an existing group from the pool. Both values are picked, not typed, which keeps a stray character from pointing at the wrong object.

Key parameters

  • User Pool: the pool the group currently lives in.
  • Group: the group to delete, selected from the list or passed by value from an earlier node, for instance {{ $json.GroupName }}.
Use cases
an internal project wraps up, and a cleanup workflow removes the group once its archive has been written somewhere safe.
03

Get group

group.get

What you see in n8n

Notes & use cases

Reads one group and returns its details, optionally with everyone inside it.

Key parameters

  • User Pool: the pool to read from.
  • Group: the group you want to retrieve.
  • Include Users: switch it on and the response also carries the list of users in the group, which saves a second call.
Use cases
a manager signs off on quarterly access, and the workflow pulls the group with its members so the approval email contains the actual list instead of a promise to send it.
04

Get many groups

group.getAll

What you see in n8n

Notes & use cases

Returns the groups of a pool, one item per group.

Key parameters

  • User Pool: the pool whose groups get listed.
  • Limit: required, the maximum number of groups to return.
  • Return All: on, n8n walks through the API pages and brings back every group; off, it stops at Limit.
  • Include Users: adds the members of each group to the output.
Use cases
a weekly export of the pool structure into a spreadsheet, which only tells the truth if Return All is on.
05

Update group

group.update

What you see in n8n

Notes & use cases

Edits a group that already exists. Fields left out of Additional Fields keep their current value.

Key parameters

  • User Pool: the pool that owns the group being edited.
  • Group: the group to update.
  • Description: optional, a new description for the group.
  • Precedence: optional, the new precedence value, lower meaning higher priority.
  • Role ARN: optional, a new role Amazon Resource Name used for setting claims in tokens.
Use cases
an infrastructure change renames the IAM role behind a group, and the workflow writes the new ARN before anyone signs in again.

User

7 operations
06

Add user to group

user.addToGroup

What you see in n8n

Notes & use cases

Puts an existing account into an existing group. Nothing is created here, only the link between the two.

Key parameters

  • User Pool: the pool where both the account and the group already exist.
  • User: the account you want to add.
  • Group: the group that receives it.
Use cases
a plan upgrade comes through the billing workflow, and the account joins the group that unlocks the paid area, with no support ticket in between.
07

Create user

user.create

What you see in n8n

Notes & use cases

Provisions an account in the pool and, unless told otherwise, has Cognito send the welcome message.

Key parameters

  • User Pool: the pool the account is created in.
  • User Name: depending on the pool settings this takes the username, the email or the phone number, and no whitespace is allowed.
  • Desired Delivery Mediums: optional, sends the welcome message by EMAIL, by SMS, or both.
  • Message Action: optional, SUPPRESS sends nothing, RESEND repeats the invitation to an account that already exists.
Use cases
a company buys seats in bulk and one spreadsheet row per person becomes one account.
08

Delete user

user.delete

What you see in n8n

Notes & use cases

Removes an account from the pool for good.

Key parameters

  • User Pool: the pool the account belongs to.
  • User: the account to delete, usually coming from the item the previous node produced.
Use cases
an offboarding ticket closes and the last step of the workflow removes the account, which is the step humans forget because it is nobody's favourite Friday task. Put it behind a short delay if the team wants a window to change its mind.
09

Get user

user.get

What you see in n8n

Notes & use cases

Fetches one account and returns what Cognito knows about it.

Key parameters

  • User Pool: the pool to look the account up in.
  • User: the account to retrieve.
  • Simplify: on, the response comes back trimmed instead of raw, which is easier to map into the next node.
Use cases
a support agent drops an identifier into a channel, a workflow answers with the account status in the same thread, and nobody logs into AWS to read one line.
10

Get many users

user.getAll

What you see in n8n

Notes & use cases

Lists accounts from a pool, one item per user.

Key parameters

  • User Pool: the pool to list accounts from.
  • Limit: required, the maximum number of accounts returned.
  • Return All: on, n8n chains the API pages until the pool is exhausted.
  • Filters: narrows the list instead of pulling everything and sorting it later in the workflow.
  • Simplify: returns a lighter version of each record.
Use cases
a nightly copy of the directory into a reporting database, so analytics never queries Cognito directly.
11

Remove user from group

user.removeFromGroup

What you see in n8n

Notes & use cases

Breaks the link between an account and a group. The account itself stays in the pool.

Key parameters

  • User Pool: the pool holding the membership you want to undo.
  • User: the account to take out.
  • Group: the group it should leave.
Use cases
a trial ends without a payment, the account drops out of the paying group, and the person can still sign in and see the free tier instead of hitting a wall.
12

Update user

user.update

What you see in n8n

Notes & use cases

Writes new attribute values onto an existing account.

Key parameters

  • User Pool: the pool storing the profile you are changing.
  • User: the account to update.
  • User Attributes: required, a collection where each entry you add with Add Attribute is one attribute and its new value.
Use cases
someone changes their phone number in the customer portal, and the same workflow that updates the CRM record pushes the attribute back into the pool so both sides agree.

User Pool

1 operation
13

Get user pool

userPool.get

What you see in n8n

Notes & use cases

Reads the pool itself rather than anything inside it, and returns its configuration.

Key parameters

  • User Pool: the pool to retrieve, selected from the list or passed by ID.
  • Simplify: on, you get a condensed response instead of the raw payload.
Use cases
a workflow that runs against several environments reads the pool first, then branches on what it finds, which beats hardcoding an identifier in every node and fixing them all when staging moves.
Need help

Need help automating AWS Cognito with n8n?

A person reads every message.

FAQ

AWS Cognito and n8n: common questions

01Is the AWS Cognito n8n integration free?
Yes on the n8n side. The AWS Cognito node ships with n8n, so there is nothing to install and nothing extra to pay for the connector itself. That holds on n8n Cloud, the hosted offer run by n8n, and on a self-hosted instance under the Community Edition and its Sustainable Use licence. A workflow behaves the same way in both places, which means you can build it locally and move it later without rewriting nodes. The AWS credential you create is reused by every other AWS node in your instance, so adding a second AWS integration later costs you no extra setup.
02What AWS credentials do you need for the Cognito node?
n8n offers two credential types for AWS and Cognito accepts both. AWS (IAM) authenticates with an access key: your AWS Region, an Access Key ID and a Secret Access Key, all three generated from the IAM console. AWS (Assume Role) authenticates by assuming an IAM role through AWS STS instead, and the credentials used for the AssumeRole call are either entered by hand or read automatically from the environment n8n runs in. If you self-host n8n on AWS infrastructure such as EKS, ECS or EC2 and would rather not store static keys, that second type is the one to look at.
03What are the limits of the AWS Cognito node in n8n?
It depends on what you need. The node exposes 13 operations across users, groups and user pools, and that catalogue is what you get out of the box. Anything outside it goes through the HTTP Request node, which calls any endpoint of the AWS API directly and reuses the same AWS credential through predefined authentication, so you are not stuck and you are not managing a second set of keys. The other thing to watch is listing: Get Many operations are paginated, and with Return All switched off n8n stops at Limit, so an export from a large pool can quietly come back incomplete.
04Can n8n react in real time to a new Cognito user?
No, not on its own. Cognito has no trigger node in n8n, so nothing on the AWS side starts a workflow by itself. You have three practical ways around it. A Schedule Trigger runs the workflow at a fixed interval and calls Get Many Users to see what changed since the last run. An n8n Webhook gives you a URL that another service calls when something happens on its side, and that call starts the workflow. Or the workflow starts from another tool's trigger, your billing platform or your HR system, and Cognito is simply the node that acts.
05n8n or Make for AWS Cognito?
It depends on four things, and price is only one of them. Hosting: n8n can be self-hosted with Docker or npm, or used on n8n Cloud, while Make is a hosted platform with no self-hosting option. Data control follows from that, which matters when the workflow moves account data around. Cost model: Make bills per operation, so a nightly job that lists a whole directory is charged differently from one that touches a single user. Visual logic differs too, and that one is personal taste. Try the same small workflow on both and pick the one you can debug faster.