searchProfiles method
Searches security profiles, optionally returning only those linked to the provided list of security roles.
Implementation
Future<ProfileSearchResult> searchProfiles(
{Map<String, dynamic> query = const {},
int? from,
int? size,
String? scroll}) async {
final request = KuzzleRequest(
controller: name,
action: 'searchProfiles',
body: query,
from: from,
size: size,
scroll: scroll,
);
final response = await kuzzle.query(request);
return ProfileSearchResult(kuzzle, request: request, response: response);
}