Share this page

# lr.vuser_group

Returns the name of the Vuser group.

## C#

    int lr.vuser_group ( string group_name );

## VB.NET

    Function lr.vuser_group ( ByRef group_name As String ) as Integer

Informational Functions

## Arguments

Name | Comments
--- | ---
group_name | Output argument for the group name.

The lr.vuser_group function sets the group_name output argument to the name of the Vuser group to which the Vuser belongs.

## Return Values

This function always returns zero.

## Parameterization

Parameterization is not applicable to this function.

## Example

The following example retrieves the Vuser group name, validates it, and sends it to the output.

Copy code

    string vusergroup=lr.vuser_group;
    if(vusergroup==null)
       lr.output_message("Failed to get the Vuser name");
    else
       lr.output_message("Vuser group = " + lr.vuser_group);

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: