aws cognito-idp admin-update-user-attributes --user-pool-id <pool id> --username admin --user-attributes Name="custom:Organization",Value="myOrg"
根据 this上面的命令应该更新我为我的用户池定义的自定义属性。
所以我定义了自定义属性 后 池的初始创建和几个用户的创建用于测试目的。我还为此属性启用了应用程序的读/写权限,但是在运行上述命令时,我得到的是:
An error occurred (InvalidParameterException) when calling the AdminUpdateUserAttributes operation: Invalid user attributes: custom:Organization: Attribute cannot be updated.
我想我在某处缺少一些微配置,但我可以找到它是什么......
最佳答案
检查自定义属性的可变设置。您可以在用户池的“属性”选项卡下找到属性设置。
关于amazon-web-services - cognito-idp admin-update-user-attributes 在尝试更新自定义属性时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59074628/