<div dir="ltr">For legacy reason, which we cannot change in a hurry, we have backend connections to databases and active directories (both plural).<div><br></div><div>There is a drive to extend allowing users to authenticate beyond uid/samAccountName -- to a personal PIN (password remains the same irrespective of using uid or PIN)</div><div><br></div><div>With the number of database lookup requiring the uid (PIN only exists in the ADs) -- is there a way, when a user uses PIN, instead of uid as the login name, to map the PIN to login name -- so the database queries can still work as is?</div><div><br></div><div><pre style="color:rgb(0,0,0)">SELECT name FROM table WHERE username='$requestContext.principalName'</pre></div></div>