This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Password Portal code snippets and documentation v8.0.1

Hi,

I'm trying to customize the Password Portal in v8.0.1 and have it send the otp reset code to an external email address. Searching I've found this code snippet in QER_PasswordWeb_Session

(...)

var vars = _UserSession.SessionModule.TableStore.GetTable("SessionAuthVars");
var accountName = vars.GetColumn("AccountName").GetValue(vars.First()).String;
var q = await VI.WebRuntime.ServiceConnection.Get().Session.GetLimitedSqlScalarAsync<string>("QER_Person_GetPasswordQuery", new []{ new QueryParameter("CentralAccount", ValType.String, accountName)}, _cx).ConfigureAwait(false);
vars.GetColumn("PasswordQuery").SetValue(vars.First(), q);

(...)

, which loads the value of the PasswordQuery column from Person into the temporary SessionAuthVars collection. How could I use these snippets to load, let's say, the value of the column DefaultEmailAddress from the table Person? I can see functions like QER_Person_GetPasswordQuery, are they documented?

Thanks!

  • So when I am understanding your use-case correctly, you want to send a one-time passcode to the email of a Person. Why are you not using the process chains and scripts to achieve that? Passcode generation is available via a customizer method.


    Take a look at the following thread https://www.quest.com/community/one-identity/identity-manager/f/identity-manager-forum/27338/password-reset-portal-and-api-v8-0-1

    HtH

  • Hi Markus, 

    Thanks for replying. 

    Yes, my goal is to implement the following procedure: In the password portal, the employee enters her/his useraccount (CentralAccount) and if a secondary email address (a custom column in Person) is present for that useraccount, then the reset code is sent. 

    To achieve that , I've rewrited the form AuthByQuestion in QER_PasswordWeb_Session . Instead of a password question I need to query the secondary email address column. That's where I've stumbled upon that code snippet in my post and asked for a better understanding. Most of these modifications we made have a direct purpose, others are just simply for self education on the product.

    I've used the customizer method you've pointed out before so I'll try another approach.

    Thanks again! Slight smile