We have developed a couple of applications that connect to the Automation Engine via the Java Application Interface. These apps maintain connections to each AE system, using a system user account with high privileges in the AE systems. For some operations (e.g., executing objects), it is desirable that the tasks be started as a user other than this administrative user. We would like to find a way to execute objects in the target AE system as a different user without having to log out and log back in again. In other words, we want to be able to keep the connectionss active, and to switch to another user only for certain operations like executing tasks. The ExecuteObject API class appears to offer no mechanism for user impersonation or user switching.
See also this discussion: User impersonation for tasks executed via AE Java Application Interface
Legacy enhancement request: PMPER-1782, opened November 2016.