$setUserName

Renames the specified user.
Syntax
    $setUserName{old_name}{new_name}
DocumentationRenames the specified user:

    Parameters:
      old_name, the name of the user to be renamed.
      new_name, the new name of the specified user.
Examples
    $setUserName{John}{Jack}

    Result:
    changes the name of user "John" to "Jack"
    removes user "John"
GroupSecurity
Minimum required transaction-mode:UPDATE=SECURITY
Required scripting permission of the developerPERMISSION_FL_ADMINISTRATIVE
Minimum parameters2
Maximum parameters 2