SDK
SDK Dart v1.x
2

# getUser

Gets a user.


Copied to clipboard!
Future<KuzzleUser> getUser(String id)

Property Type Description
id
String
User kuid

# Return

The retrieved User object.

# Usage

Copied to clipboard!
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 } } }
*/