amazon-web-services - 如何在 AWS Cognito 用户池中编辑特定用户的用户属性?

标签 amazon-web-services amazon-cognito

我正在使用 AWS Cognito 用户池并创建了一些用户。现在我想更改特定用户的一些属性,例如姓名、地址等...

是否可以在 AWS 网站上执行此操作?如果是这样,怎么办?

最佳答案

控制台不具备该功能,但可以在 AWS 命令​​行界面中完成。

aws cognito-idp admin-update-user-attributes \
    --user-pool-id xxx \
    --username yyy \
    --user-attributes Name=xxx,Value=yyy Name=ttt,Value=sss ...

自定义属性使用以下语法:

--user-attributes Name="custom:attributeName",Value="value with space"

您需要首先使用 cli 设置您的凭据(仅在第一次),通过以下命令:

aws configure

但之后就很简单了。了解更多:

aws cognito-idp admin-update-user-attributes help

关于amazon-web-services - 如何在 AWS Cognito 用户池中编辑特定用户的用户属性?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40845937/

相关文章:

ios - 将 DynamoDB 与 Cognito 一起使用 : Token is not from a supported provider of this identity pool

amazon-web-services - 如何通过 Cognito 用户池授权 token 识别用户?

javascript - XmlHttpRequest 不起作用,表示模块未定义

android - 为 Cognito 设计自定义登录流程/Activity

amazon-web-services - 步进函数超过最大字符数服务限制

node.js - 用 nodejs 编写的 AWS Lambda 函数没有更新我的 DynamoDB

sql - 验证 SQL 查询和结果集

javascript - Cognito adminDeleteUser 用户池不存在错误

amazon-web-services - 如何使用awslogs驱动程序登录到单个流

proxy - 要使用哪个 Amazon EC2 实例?