Skip to content

Unconfirmed users

0

How to remove the unconfirmed users from cognito for every 24 hrs without using lambda triggers and amplify.

3 Answers
3

Hi,

You have a fully detailled solution here: https://medium.com/@xargsuk/cognito-hygiene-an-automated-solution-to-unconfirmed-users-dc74fd352c10

The author of this article also provides the code at https://github.com/XargsUK/cognito-clean

Best,

Didier

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

EXPERT

reviewed 2 years ago

EXPERT

reviewed 2 years ago

2
  • Use AWS Step function to ListUsers with a status 'Status': 'UNCONFIRMED'
  • Then issue DeleteUser on each user

Run step function on an EventBridge Schedule

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

1

hey,, To remove unconfirmed users from Amazon Cognito without using Lambda or Amplify, you can:

  • Use AWS Step Functions: Create a Step Function that lists all unconfirmed users.
  • Delete Unconfirmed Users: After listing, use the DeleteUser command for each unconfirmed user.
  • Schedule the Task: Run this Step Function every 24 hours using Amazon EventBridge to trigger it on a schedule.
  • This approach automates the process without requiring Lambda or Amplify.

For detailed guidance, check this helpful resource: https://medium.com/@xargsuk/cognito-hygiene-an-automated-solution-to-unconfirmed-users-dc74fd352c10

EXPERT

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.