简体   繁体   English

在AWS Cognito中管理用户

[英]administer user in AWS Cognito

How can I administer (delete) a user in AWS Cognito in my backend (using Node)? 如何在后端(使用Node)管理(删除)AWS Cognito中的用户?

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 在此步骤中,仅记录用户(需要记录用户): 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 也有一个(但我不知道要使用的端点): 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? 您知道另一种方法或如何使用此APIReference吗?

Thanks. 谢谢。

You can use the adminDeleteUser method to delete a user using JavaScript SDK in NodeJS . 您可以使用adminDeleteUser方法使用adminDeleteUser JavaScript SDK删除用户。

Note: Make sure you provide necessary IAM policies for the IAM user or role which executives the code. 注意:确保为执行代码的IAM用户或角色提供必要的IAM策略。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM