How to redirect users to custom (per app) web page after ACTIVATION w/ Okta email template

Hello,

Any thoughts on how to redirect users to a custom (per app) application when using the Okta email template? I have one idea to run by you – when I create the user, can I set a custom attribute like “defaultURI” and then have that populate in the activation email template?

Like this?

<a href="${activationLink}/redirectURI=${user.defaultURI}" id="reset-password-link" style="text-decoration:none">

[EDIT] Of course, this doesn’t work because you can’t use arbitrary user profile attributes in email templates. Only a small subset are allowed.

Hi @chu123
Have you taken a look at this thread?

Might be helpful.

any thoughts on how the user activation email template would work if there are different applications living under the same Okta tenant and each one has its own domain which points to its unique login page? Is there a way to pass different bookmarks to the href="${activationLink}?fromURI ? Thank you.

1 Like

I also have this question

@MRey @cat Hopefully, this article answered your question.
Email template is not based on application. It can be leveraged by user profile attributes.
https://support.okta.com/help/s/article/How-to-leverage-different-activation-email-templates-based-on-a-user-profile-attribute-value?language=en_US

Interesting, so you create multiple email templates in different locales, one for each app. Then in the templates you can put the app-specific URL. When the user signs up, choose the locale that matches the app they’re signing up for. Definitely a hacky way to do it, but sounds like that would work.

@cat Yup, that could be the only workaround we can try.

1 Like