SDK
SDK Dart Null Safety v3.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 } } } }
*/