skip to main content

Library Routines : A$CURRENT_USER

A$CURRENT_USER
In an Application Server environment, the A$CURRENT_USER returns information about the logged user.
Syntax:
 CALL "A$CURRENT_USER" USING ID 
Parameters:
Returns the login user name. If no login has been made, it’s set to operating system user name
[*] A computer may have multiple IPs and multiple alias name for the same IP too, so you might not receive the expected IP and name. Usually a safe method to get the desired information is to change the hosts configuration file (/etc/hosts on Linux/Unix, %SystemRoot%\System32\drivers\etc\hosts on Windows) appropriately.
Examples:
Example - Get current user information when running in thin-client mode
call "a$current-user" using usr-id

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left