TitaoYamamoto
TitaoYamamoto

Reputation: 335

administer user in AWS Cognito

How can I administer (delete) a user in AWS Cognito in my backend (using Node)?

In this steps, is just user logged (user need to be logged): https://docs.aws.amazon.com/cognito/latest/developerguide/using-amazon-cognito-user-identity-pools-javascript-examples.html

Have this one too (but I dont know the endpoint to use): https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminDeleteUser.html

Do you know another way or how can use this APIReference?

Thanks.

Upvotes: 0

Views: 276

Answers (1)

Ashan
Ashan

Reputation: 19758

You can use the adminDeleteUser method to delete a user using JavaScript SDK in NodeJS.

Note: Make sure you provide necessary IAM policies for the IAM user or role which executives the code.

Upvotes: 0

Related Questions