SDK
SDK Dart v2.x
2

getUser #

Gets a user.


Future<KuzzleUser> getUser(String id)

PropertyTypeDescription
id
String
User kuid

Return #

The retrieved User object.

Usage #

final result = await kuzzle.security.getUser('john.doe');
/*
User {
  _id: 'john.doe',
  content:
    { profileIds: [ 'default' ],
      fullName: 'John Doe',
      _kuzzle_info:
      { author: -1,
        createdAt: 1561447939790,
        updatedAt: null,
        updater: null } } }
*/