Update cookies preferences
Promotic

TestInGroup - method of the PmUser object

Description:
Test whether the user is or isn't a member of the user group.
Syntax:
Boolean TestInGroup(String sGroups)
Parameters:
sGroups(String) The list of user groups identifiers (separated with comma ',') where the user is searched.
Return value:
true - the user is a member of any listed group
false - the user isn't a member of any listed group
Note:
If the designer creates a permissions system in the application based on logical user groups, then this method allows to test in the script if the logged-on (or else) user is a member of the group.
Example:
Test whether the local user is a member of the $OPER or $ADMIN group
JavaScriptVBScriptSelect and copy to clipboard

if (pContext.User.TestInGroup("$OPER,$ADMIN"))
{
// ...
}
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.