Cognito admin_create_user API param username
need to align with sign in options
#3836
Labels
api-documentation
documentation
This is a problem with documentation.
p2
This is a standard priority issue
Describe the issue
The docs on the admin_create_user only says
Username
param should be a UTF-8 string. However when I was trying it out, this only hold true if your user pool haveuser name
sign in options. On my case the user pool only have email option so if you pass anything else other than a email I gotbotocore.errorfactory.InvalidParameterException: An error occurred (InvalidParameterException) when calling the AdminCreateUser operation: Username should be an email.
I just think it's kind of ambiguous on what exactly does
Username
param refer to as in email sign in option the "username" of a given user is actually thesub
while theUsername
in API is actually the email.Thank you!
Links
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/cognito-idp/client/admin_create_user.html
The text was updated successfully, but these errors were encountered: