New user creation with identity type QUICKSIGHT can't log in

I registered a new user via AWS CLI:

aws quicksight register-user
–aws-account-id 1234567890123
–namespace namespace1
–identity-type QUICKSIGHT
–user-name sample@email.com
–user-role Reader
–email sample@email.com
–region us-east-1

No email was sent to this account. When I use the UserInvitationUrl, I was able to set the password but when I used the password, it rejects the password.

This only happens when I use CLI but when I register via the Quicksight. The user is able to receive the welcome email and login.

I have also double checked if the email is correct

Hello Jared,

When registering a new user through the Amazon QuickSight API or AWS CLI, Amazon QuickSight generates a registration URL but does not send a registration email to these users.

please refer or here

This behavior is by design and explains why no email was sent to the account you registered via CLI.

For users to receive a registration email, they need to be added through the Amazon QuickSight console instead of the API or CLI.

This aligns with your experience where users registered via the QuickSight console received welcome emails while CLI-registered users did not.

Hope this helps.

Cheers,
Deep