Application Programming Interface Guide > Built-in Procedures > Procedures Reference > SetAlternatePrincipal
 
SetAlternatePrincipal
Establish an alternate identity within the current session, preserving the original identity for afterwards. This allows upstream servers to pool connections to TDV.
Location
/lib/util/
Inputs
user: The new user’s name.
domain: The user’s domain.
password: The user’s password.
Outputs
N/A
Exceptions
SecurityException: If the identity specified is not known.
SecurityException: If the password is not valid for the user.