Our organisation has recently realised that our new customers are being defaulted to using SMS MFA and not being provided the option to using Email or app based MFA.
This is how we are creating the new users. Is it due to the email verified field?
var newUserRequest = new AdminCreateUserRequest
{
UserPoolId = _poolId,
DesiredDeliveryMediums = user.DesiredDeliveryMediums,
Username = user.Email,
UserAttributes = new List<AttributeType>
{
new AttributeType() { Name = "name", Value = user.Name },
new AttributeType() { Name = "email", Value = user.Email },
new AttributeType() { Name = "email_verified", Value = user.EmailVerified.ToString() }
}
};

Thanks for the suggestion.
Tried that but then I get the error
User could not have been created. Please check user details. No phone_number provided but desired delivery medium was SMSI'm not looking to change the delivery of the welcome message. I just want to allow users to select the MFA they desire.