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

Finds roles by using filtering strings.

Parameters:
strFilter(wstring) filtering string. See Search filter syntax.
pFieldsToReturn(array) array of strings with the role attributes names, which must be returned. See Roles attributes for allowed attributes.
pFieldsToOrder(array) array of containers, each containing two attributes:
  • "Name" of type (paramString) - Name of the attribute used for sorting.
  • "Asc" of type (paramBool) - Ascending sorting if true; otherwise descending sorting.
lMaxLifeTime(int) maximum lifetime of accessor, in seconds.
[out]strAccessor(wstring) result-set ID. Identifier of the server-side ordered collection of found roles. The result-set is destroyed and associated memory is freed in the following cases:
Returns:
(int) number of found records.