Promotic

FindUserIdNet - method of the Pm object

Description:
Returns the identifier of the network user that refers 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)
Note:
This method is not functional in Web panels.
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", "")))
{
// ...
}
Example2:
Test in the PmaWeb.onNewRequest event if the network user that invoked the request, is the member of the "OPERATOR" group
JavaScriptVBScriptSelect and copy to clipboard

if (Pm.TestUserInGroup(1, "OPERATOR", Pm.FindUserIdNet(pEvent.HostName, pEvent.HostPwd, pEvent.HostAddr)))
{
// ...
}
PROMOTIC 9.0.17 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- FindUserIdNet
 
 
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice