ars_SetImpersonatedUser(ctrl,loginName)

This function enables an API program running under an administrator login to perform certain operations as a specific user.

loginName is the login name of the impersonated user. Use "" (i.e. the empty string) to switch back to the admin user.

On success
Returns 1
On failure
Returns 0

Example:

	      ars_SetImpersonatedUser($ctrl,"TestUser") || die "$ars_errstr";
      

ars_SetImpersonatedUser was introduced in version 1.90 of ARSperl


<-- Table of Contents

Last changes to this page 22th February 2007 by tstapff@users.sourceforge.net
© J.C.Murphy, J.W.Murphy, T.Stapff 2007 arsperl@arsperl.org