Dart 2.x

getProfile

Gets a security profile.


Copied to clipboard!
Future<KuzzleProfile> getProfile(String id)

Property Type Description
id
String
Profile identifier

Return

The retrieved Profile object.

Usage

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