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

API to update email verification state #285

Closed
gurupras opened this issue Sep 9, 2019 · 3 comments
Closed

API to update email verification state #285

gurupras opened this issue Sep 9, 2019 · 3 comments
Assignees
Labels
architecture Feedback on designed behavior enhancement New feature or request

Comments

@gurupras
Copy link

gurupras commented Sep 9, 2019

Programmatically verifying user's email ID

Problem

We're migrating users into FusionAuth, and many of these users have already verified their email. Ideally, we'd like to set theverified field to true on these accounts. However, we're unable to do both during registration and via updates using /api/user/ endpoint.

Solution

Please provide a programmatic mechanism to update the email verification state.

Alternatives/workarounds

No workaround AFAIK.
The closest solution seems to be skipVerification, but these are neither admin accounts nor internal users. Also, setting skipVerification: true continues to send out verification emails when performing a bulk import and also shows emails as not being verified.

skipVerification | Indicates to FusionAuth that it should skip email verification even if it is enabled. This is useful for creating admin or internal User accounts.

Related

@robotdan
Copy link
Member

robotdan commented Sep 9, 2019

For migrating users, you'll want to use the Import API.

https://fusionauth.io/docs/v1/tech/apis/users#import-users

It looks like we may be missing the verified field for this API in the documentation, but it should work.

Can you try using the Import API and see if that works for you?

@robotdan robotdan self-assigned this Sep 9, 2019
@robotdan robotdan added the support Further information is requested or user requires assistance label Sep 9, 2019
@wgbg
Copy link

wgbg commented Mar 2, 2020

Hello,
@robotdan In import api it works fine but what about situation when you want to migrate users with verified=false and after some actions(decision from another systems) update verified value via api?

@robotdan robotdan added enhancement New feature or request architecture Feedback on designed behavior and removed support Further information is requested or user requires assistance labels Sep 21, 2020
@spwitt spwitt added this to Backlog in FusionAuth Issues via automation Apr 12, 2022
@spwitt spwitt added this to the 1.37.0 milestone Apr 12, 2022
@spwitt spwitt moved this from Backlog to Code complete in FusionAuth Issues Apr 12, 2022
@spwitt spwitt moved this from Code complete to Done in FusionAuth Issues Apr 12, 2022
@spwitt spwitt moved this from Done to In progress in FusionAuth Issues Apr 12, 2022
@spwitt spwitt removed this from the 1.37.0 milestone Apr 12, 2022
@spwitt spwitt moved this from In progress to Done in FusionAuth Issues Apr 21, 2022
@spwitt
Copy link

spwitt commented Apr 21, 2022

This will be resolved by #1319

@spwitt spwitt closed this as completed Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
architecture Feedback on designed behavior enhancement New feature or request
Projects
FusionAuth Issues
  
Delivered
Development

No branches or pull requests

4 participants