forceAliasCreation
When true
, forces user confirmation despite any existing aliases. Defaults to false
. A value of true
migrates the alias from an existing user to the new user if an existing user already has the phone number or email address as an alias.
Say, for example, that an existing user has an email
attribute of bob@example.com
and email is an alias in your user pool. If the new user also has an email of bob@example.com
and your ConfirmSignUp
response sets ForceAliasCreation
to true
, the new user can sign in with a username of bob@example.com
and the existing user can no longer do so.
If false
and an attribute belongs to an existing alias, this request returns an AliasExistsException error.
For more information about sign-in aliases, see Customizing sign-in attributes.