<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
0D54z000081erc2CAAOkta Classic EngineAuthenticationAnswered2022-08-30T21:39:49.000Z2022-08-29T20:52:16.000Z2022-08-30T21:39:49.000Z

RyanR.27482 (Customer) asked a question.

Reactivate user from expired User Activation link - profile identifier in User Activation email template

I am trying to enable user reactivation for users that took too long to follow their initial activation link before it expired. I would like to provide a button allowing the user to send a out a new activation email if the link they followed is expired.

 

In order to reactivate a user, I need to call POST {{url}}/api/v1/users/{{userID}}/lifecycle/reactivate?sendEmail=true, yet all I have available in the application at this point is the expired "activationToken". Here is the list of available variables: https://developer.okta.com/docs/guides/custom-email/main/*use-vtl-variables

 

"user.id" is not available in the User Activation email template, yet "user.profile.email" is. I could use this on my server to look up the "user.id". However, I cannot add this as a query parameter to the activation link in the email as the user's email needs to be url encoded.

 

So, my questions are:

  • How could I url-encode the email address of a user within the User Activation template?
  • Is there a simpler way to reactivate the user?
  • Is there a different user identifier available that would not need to be encoded?

This question is closed.
Loading
Reactivate user from expired User Activation link - profile identifier in User Activation email template
Okta Support Agent (Beta)

Terms of Service

Hello! I'm the Okta Support Agent (Beta), your go-to resource for questions about Okta products. Please remember for your security and privacy, do not share any Personally Identifiable Information (PII) such as passwords, IP addresses, or other details with me.

Okta Privacy Policy and Terms of Service apply