uss_getMyUsergroup()

Returns the user group with the lowest position ID.

Synopsis

string uss_getMyUsergroup(string sUserName = "");

Parameters

Parameter Description
sUserName The user name of the user for whom the user group should be returned.

Return value

The function returns the user group or an empty string.

Errors

See above.

Description

Returns the user group with the lowest position ID.

EXAMPLE

The example returns the user group for the user "para". In this example the group with the lowest position ID is the group 3 - see figure below. The function returns this group.

Figure: Position IDs of user groups

main()


{


  string gr;


  gr = uss_getMyUsergroup("para");


  DebugN("User group:", gr);
}

Assignment

User administration

Availability

CTRL