Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS Cognito: No option to stop mobile number update until verified #32408

Open
Harshroc opened this issue Jul 7, 2023 · 4 comments
Open

AWS Cognito: No option to stop mobile number update until verified #32408

Harshroc opened this issue Jul 7, 2023 · 4 comments
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/cognitoidp Issues and PRs that pertain to the cognitoidp service.

Comments

@Harshroc
Copy link

Harshroc commented Jul 7, 2023

Description

I have select user verification through email. So, in sign up experience, want to keep Keep original attribute value active when an update is pending for Mobile number, but this option is disabled.

While signup user is entering his email and mobile number both, but we want user to confirm through email.

Affected Resource(s) and/or Data Source(s)

No response

Potential Terraform Configuration

No response

References

No response

Would you like to implement a fix?

None

@Harshroc Harshroc added enhancement Requests to existing resources that expand the functionality or scope. needs-triage Waiting for first response or review from a maintainer. labels Jul 7, 2023
@github-actions
Copy link

github-actions bot commented Jul 7, 2023

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@Harshroc Harshroc changed the title No option to stop mobile number update until verified AWS Cognito: No option to stop mobile number update until verified Jul 7, 2023
@trevorrea
Copy link
Contributor

You need to give more detail of what you're talking about as it's not clear at all but as far as I can see what you are asking for is already available at https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cognito_user_pool#user_attribute_update_settings

user_attribute_update_settings
attributes_require_verification_before_update - (Required) A list of attributes requiring verification before update. If set, the provided value(s) must also be set in auto_verified_attributes. Valid values: email, phone_number.

@justinretzolk justinretzolk added waiting-response Maintainers are waiting on response from community or contributor. service/cognitoidp Issues and PRs that pertain to the cognitoidp service. and removed needs-triage Waiting for first response or review from a maintainer. labels Jul 7, 2023
@Harshroc
Copy link
Author

We want to signup users with email and we have kept SMS_MFA optional. So, to confirm the user we verify email. 

Now when the user wants to enable MFA. So, the user updates his phone number (updateUserAttributes) and then we send the verification code (getUserAttributeVerificationCode). But if the user does not verify his phone number then also the phone number gets updated in the Cognito. 

But this does not happen in the case of email, until the user does not verify his email, it does not changes as we have enabled - Keep original attribute value active when an update is pending - Recommended.

In the given options, only email is enabled and the phone is disabled.

@github-actions github-actions bot removed the waiting-response Maintainers are waiting on response from community or contributor. label Jul 11, 2023
@trevorrea
Copy link
Contributor

trevorrea commented Jul 11, 2023

This sounds like something you need to raise an AWS support ticket for rather than an AWS provider bug but you need to provide the Terraform code you are using.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/cognitoidp Issues and PRs that pertain to the cognitoidp service.
Projects
None yet
Development

No branches or pull requests

3 participants