ARSperl Manual - ars_SetServerInfo

## `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