Dart 2.x

getUserMapping

Gets the mapping of the internal users collection.


Copied to clipboard!
Future<Map<String, dynamic>> getUserMapping()

Return

An object representing the internal users mapping, using Elasticsearch mapping format.

Usage

Copied to clipboard!
final result = await kuzzle.security.getUserMapping();
/*
{ mapping:
  { firstname:
    { type: 'text',
      fields: { keyword: { type: 'keyword', ignore_above: 256 } } },
    lastname:
      { type: 'text',
        fields: { keyword: { type: 'keyword', ignore_above: 256 } } },
    profileIds: { type: 'keyword' } } }
  */