SDK
SDK Dart v2.x
2

getRole #

Gets a security role.


Future<KuzzleRole> getRole(String id)

PropertyTypeDescription
id
String
Role identifier

Return #

The retrieved Role object.

Usage #

final result = await kuzzle.security.getRole('myRole');
/*
Role {
  _id: 'myRole',
  controllers:
    { auth:
      { actions: { login: true, getMyRights: true, updateSelf: true } },
      document: { actions: { get: true, search: true } } } }
*/