"runas" or "sudo" equivalent on AS400 IBM iSeries

Take a look at the QSYGETPH api ... this will let you switch to a user profile that you have authority to.