我无法从 AWS 的 boto3 库在 Identitystore API 中创建用户

问题描述 投票:0回答:1

当我尝试使用 boto3 库中的 create_user 方法进行身份存储时,出现此错误“”errorMessage”:“'IdentityStore'对象没有属性 'create_user'”。 boto3 类的链接:https://boto3 .amazonaws.com/v1/documentation/api/latest/reference/services/identitystore.html.

这是我的命令代码片段:

response = boto3.client('identitystore').create_user(
                  IdentityStoreId='******',
                  UserName= ****,
                  DisplayName= ****
                  )

信息模糊。

我听说 Identitystore 是 AWS Signle Sign on 的后继者,但我不确定错误是否是由此引起的。

我希望将 dynamboDB 表中的用户添加到身份存储中。

python amazon-web-services aws-lambda boto3
1个回答
0
投票

这可能是也可能不是您的问题,但是当您使用 API 创建用户时(boto3 正在为您做的事情),您需要使用 OTP 启用标准身份验证。

请查看文档这里

© www.soinside.com 2019 - 2024. All rights reserved.