FindUserIdLocal - method of the Pm object
Description:
Returns the identifier of the local user that corresponds to the entered login parameters.
Syntax:
String FindUserIdLocal(String sName, String sPassword)
Parameters:
sName | (String) User name |
sPassword | (String) Login password of the user |
---|
Example:
Test whether the local user (entered by the login name and password) is the member of the "OPERATOR" group
JavaScriptVBScriptSelect and copy to clipboard
if (Pm.TestUserInGroup(1, "OPERATOR", Pm.FindUserIdLocal("JAN NOVY", "JN")))
{
// ...
}
If Pm.TestUserInGroup(1, "OPERATOR", Pm.FindUserIdLocal("JAN NOVY", "JN")) Then
' ...
End If