SDK
SDK Dart Null Safety v3.x
2

mGetUsers #

Gets multiple security users.


Future<List<KuzzleUser>> mGetUsers(List<String> ids)
PropertyTypeDescription
idsList<String>User identifiers
verb
String
(HTTP only) Forces the verb of the API route

verb #

When instantiated with a HTTP protocol object, the SDK uses the GET API by default for this API route. You can set the verb option to POST to force the SDK to use the POST API instead.

Returns #

An array of retrieved User objects.

Usage #

final result = await kuzzle.security.mGetUsers([
  'user1',
  'user2',
  'user3'
]);
/*
[ User {
    _id: 'user1',
    profileIds: ['profile1'],
  User {
    _id: 'user2',
    profileIds: ['profile2'],
  User {
    _id: 'user3',
    profileIds: ['profile3'] ]
  */