SDK
SDK Dart Null Safety v3.x
2

getUserMapping #

Gets the mapping of the internal users collection.


Future<Map<String, dynamic>> getUserMapping()

Return #

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

Usage #

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' } } }
  */