FindUserIdNet - method of the Pm object
Description:
Returns the identifier of the network user that corresponds to the entered login parameters.
Syntax:
String FindUserIdNet(String sName, String sPassword, String sAddress)
Parameters:
sName | (String) Login name of the user |
sPassword | (String) Login password of the user |
sAddress | (String) Network address of the user (e.g. 192.168.0.1) |
---|
Example1:
Test whether the network 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.FindUserIdNet("JOHN BROWN", "JB", "")))
{
// ...
}
If Pm.TestUserInGroup(1, "OPERATOR", Pm.FindUserIdNet("JOHN BROWN", "JB", "")) Then
' ...
End If