Promotic
WikipediaLinkedInYoutubeTwitterFacebook

GetUserInfo - method of object Pm

Description:
Obtaining the inforation from the user system.
Syntax:
GetUserInfo(sParams As String) As Variant
Calling:
users = Pm.GetUserInfo("what:cfguserlist;")
Parameters:
sParams(String) A text list of additional parameters defining which information to be obtained. Entries with assigned value are separated by a semicolon, for example "what:cfguserlist;type:local;".
"what:sss;" - The basic setting defining what to return.
what:cfguserlist; - A list of user identifier (comma separated values ',').
what:cfggrouplist; - A list of user groups identifiers (comma separated values ',').
what:loguserarray; - An array of references to logged users (User objects). The number of logged users can be obtained by the UBound function.
"type:sss;" (optional) - Defines whether to return all users only local users or only network users. If not specified then all users are returned (local and network).
type:local; - Only local users.
type:net; - Only network users.
Note:
This method is not so far functional for Web Panels.
Example1:
Gets the list of all local users. First as the user identificars list separated by comma (',') followed by transfering the list into an array of identificators.
Dim sUsers, aUsers
sUsers = Pm.GetUserInfo("what:cfguserlist;type:local;")
aUsers = Split(sUsers, ","))
Example2:
Obtain an array of references to all logged users (User objects) followed by the list of each logged user identifier reported into the INFO system.
Dim a,n,i
a = Pm.GetUserInfo("what:loguserarray;type:net;")
n = UBound(a)
For i=0 To n
  Pm.Debug a(i).Id
Next
or
Dim a,u
a = Pm.GetUserInfo("what:loguserarray;type:net;")
For Each u In a
  Pm.Debug u.Id
Next
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- GetUserInfo
 
 
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice