$switchUser

Executes the given command as the specified user.
Syntax
    $switchUser{username}{password}{statements}
DocumentationExecutes the given command as the specified user:

    Parameters:
      username, the name of the user who shall execute the given comand.
      password, a optional parameter that is only required if the specified user is not created by the current.
      statements, the statements to be executed by the specified user.
    Returns:
      whatever the return value of the executed statements is.
Examples
    $switchUser{$getCurrent{loginName}}{$getCurrent{Password}}
      {
      $setPublicUserProperty{name}{$getCurrent{name}}
      $setPublicUserProperty{email_address}{$getCurrent{email_adress}}
      }

    Result:
    sets name and email address of the user
    given in the current variable with
    "loginName" and "Password", to the public
    user properties "name" and "email_address
GroupSecurity
Minimum required transaction-mode:READ
Required scripting permission of the developerPERMISSION_FL_ADMINISTRATIVE
Minimum parameters3
Maximum parameters 3