By default, the system logs all users that log on through a middle-tier application as a single identity, the application logon username. You can optionally use the GRANT CONNECT THROUGH statement to set up trusted user applications to identify individual proxy users.
When proxy users request services from the trusted user application that involve access to the database, Teradata Database logs the activities individual users, if logging functions are active, for example, in the DBC.AccessLog and DBC.QueryLog. To assist in investigating security events that involve proxy users, these logs show the entire query band string in effect for the request, and includes the proxy user logon username.
For more on creating proxy users, see Working with Middle-Tier Application Users.