SDK
SDK Dart v2.x
2

getProfileMapping #

Gets the mapping of the internal security profiles collection.


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

Return #

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

Usage #

Copied to clipboard!
final result = await kuzzle.security.getProfileMapping();
/*
{ mapping:
  { policies:
    { properties:
      { restrictedTo:
        { properties:
          { collections:
            { type: 'text',
              fields: { keyword: { type: 'keyword', ignore_above: 256 } } },
            index:
            { type: 'text',
              fields: { keyword: { type: 'keyword', ignore_above: 256 } } } } },
        roleId: { type: 'keyword' } } } } }
  */