sParams | (String) Additional parameters defining which information to be obtained. Entries are in the KeyVal format, for example "what:cfguserlist;type:local;".
"what:sss;" - The basic option defining what to return.
what:cfguserlist; - User identifiers list (separated by comma).
what:cfggrouplist; - User groups identifiers list (separated by comma).
"type:sss;" (optional) - Specifies whether to return all users, only local users or only network users.
If not set, then all users are returned (local and network). type:local; - Only local users.
type:net; - Only network users. |
---|
var sUsers = Pm.GetUserInfo("what:cfguserlist;type:local;");
var aUsers = Pm.StringSplit(sUsers, " ");
var i;
var a = Pm.GetUserInfo("what:loguserarray;type:net;");
var n = a.GetSize(1);
for (i = 0; i < n; i++)
{
Pm.Debug(a.GetItem(i).Id);
}