KSC Open API  13.1
Kaspersky Security Center API description
int HostGroup::FindUsers ( wstring  strFilter,
array  pFieldsToReturn,
array  pFieldsToOrder,
int  lMaxLifeTime,
[out] wstring  strAccessor 
)

Finds the existing users.

Finds users after filtering by the strFilter string.

Parameters:
strFilter(wstring) string for filtering. See Search filter syntax.
pFieldsToReturn(array) array of the user's attribute names to return. See List of user's attributes.
pFieldsToOrder(array) array of containers, each of them containing two attributes:
  • "Name" (paramString) - Name of attribute used for sorting.
  • "Asc" (paramBool) - Ascending sorting if true; otherwise descending sorting.
lMaxLifeTime(int) maximum lifetime of an accessor, in seconds.
[out]strAccessor(wstring) result set ID. Identifier of the server-side ordered collection of the found users. The result set is destroyed and associated memory is freed in the following cases:
Returns:
(int) number of found records.