<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00007OTiVcCALOkta Classic EngineAuthenticationAnswered2023-07-19T13:47:31.000Z2022-01-20T17:15:55.000Z2022-01-21T19:25:12.000Z

ReuvenF.04865 (Customer) asked a question.

Activate user only after clicking on the email verification/activation link

Hello and thank you for your support.

I know this question was already addressed in the past, but all answers i found were outdated ( 3 years ago ) and i would like to know if there is a new solution to this issue.

 

The flow i am trying to achieve:

  1. Create new user with username/password.
  2. User gets created in OKTA with status: STAGED.
  3. Send Email with Activation/Verify link (Click on the link).
  4. User gets activated only after verifying his mail ( and not before ).

 

Currently after sending POST request to /api/v1/users/${userId}/lifecycle/activate?sendEmail=true the user indeed gets an email but is set to status: ACTIVE before he clicks on the link.

 

Is there a way set the user status to ACTIVE only after he verify his mail?

Thanks.

 

 


  • ReuvenF.04865 (Customer)

    Hi @User16254393570754125507 (Okta)​ , Thank you for your answer.

    I have already seen the thread in the link you provided, unfortunately it doesn't really help, the person in the thread is facing the same problem and did not get any useful answer.

     

    Currently the flow that i am making:

    1. Create user with credentials using POST request to /api/v1/users?activate=false
    2. Send verification email using POST request to /api/v1/users/{{userId_from_last_call}}/lifecycle/activate?sendEmail=true

     

    As you can see, i use the query param "sendEmail" and set it to "true".

    However, after the POST request the user's status changes to ACTIVE immediately without waiting for him to verify his mail ( He can log in to his account without verification).

     

    Is there any way to prevent the user from being ACTIVE before he verify his email?

     

    Thanks.

    Expand Post
This question is closed.
Loading
Activate user only after clicking on the email verification/activation link