Share this page

# lr.whoami

Returns information about the Vuser executing the script.

Informational Functions

## Syntax

    lr.whoami();

## Return Values

Returns a JavaScript array containing the Vuser ID, the Vuser group, and the scid. The scid is the Scenario or Session step ID number.

To access the scenario ID, add the scenario attribute to the runtime settings. Add scenario to the Additional Attributes on the General tab. If the scenario attribute is not added to the runtime settings, the scenario ID is always zero (0).

## Parameterization

You cannot use standard parameterization for any arguments in this function.

## Example

Copy code

    const result = lr.whoami();
    lr.message(" vuser id: " + result[0]+
              " scenario id: "+ result[1] +
              " Group: " + result[2]);
    // vuser id: -1 scenario id: 0 Group: undefined

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: