Promotic
WikipediaLinkedInYoutubeTwitterFacebook

FindUserIdNet - method of object Pm

Description:
Returns the identifier of the network user that refers to the entered login parameters.
Syntax:
FindUserIdNet(sName As String, sPassword As String, sAddress As String) As String
Calling:
b = Pm.FindUserIdNet(sName, sPassword, 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 for Web panels in JavaScript language (and therefore it is not working in Web panels).
Example1:
Test if the network user, entered by the login name and password, is the member of the "OPERATOR" group
VBScriptSelect and copy to clipboard

If Pm.TestUserInGroup(1, "OPERATOR", Pm.FindUserIdNet("JOHN BROWN", "JB", "")) Then
  '...
End If
Example2:
Test in the PmWeb.onNewRequest event if the network user that invoked the request, is the member of the "OPERATOR" group
VBScriptSelect and copy to clipboard

If Pm.TestUserInGroup(1, "OPERATOR", Pm.FindUserIdNet(pEvent.HostName, pEvent.HostPwd, pEvent.HostAddr)) Then
  '...
End If
PROMOTIC 8.3.27 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