I need to set re-direct password error page ($pwd_error) to password reset page ($pwd_reset)

Bird1
Mega Sage

Hi everyone,

I’m working on a requirement to auto-register external users via a Record Producer (about NDA Generator).

The Scenario:

  1. An internal user submits a Record Producer with an external user's email address.

  2. A Flow Designer flow triggers to register the external user.

  3. The user receives the Out-of-Box (OOB) notification for password reset.

  4. Per security requirements, the token expires in 1 hour.

The Issue: Some users do not check the email within the hour. When they click the expired link, they land on the password error page ($pwd_error) with an unauthorized_access error. This leaves the user "stuck" with no clear next step.

The Requirement: I need to automatically redirect the user from the error page ($pwd_error) back to the password reset page ($pwd_reset) specifically when the error is due to an expired token/unauthorized access.

Questions:

  • Is there a recommended way to intercept this specific error on the $pwd_error UI Page?

  • Should I use a Client Script on the UI Page to trigger the redirect, or is there a system property/configuration I’m missing?

 

2 REPLIES 2

ChallaR
Giga Guru

Hi @Bird1 ,

 

Customize the $pwd_error UI Page and auto‑redirect to $pwd_reset when the error is unauthorized_access.

 

  1. Open UI Page = pwd_error
  2. Add a Client Script (or script section) that checks the URL parameter.
  3. If the error is unauthorized_access, redirect the user to $pwd_reset.
var params = new URLSearchParams(window.location.search);
if (params.get('sysparm_error') === 'unauthorized_access') {
   window.location.href = '/$pwd_reset.do';
}

 

If security prefers no auto‑redirect, replace it with a button saying “Request new password reset link” that points to $pwd_reset.do.

Thanks,

Rithika.ch

The $pwd_error UI Page is protected, not allow to modify. Not sure why you suggest this?