SDK
SDK Dart Null Safety v3.x
2

getProfile #

Gets a security profile.


Future<KuzzleProfile> getProfile(String id)

PropertyTypeDescription
id
String
Profile identifier

Return #

The retrieved Profile object.

Usage #

final result = await kuzzle.security.getProfile('myProfile');
/*
Profile {
  _id: 'myProfile',
  policies:
    [ { roleId: 'admin',
      restrictedTo:
        [ { index: 'someIndex' },
          { index: 'anotherIndex', collections: [ 'someCollection' ] } ] },
      { roleId: 'default' } ] }
*/