SDK
SDK Dart v2.x
2

getRole #

Gets a security role.


Copied to clipboard!
Future<KuzzleRole> getRole(String id)

Property Type Description
id
String
Role identifier

Return #

The retrieved Role object.

Usage #

Copied to clipboard!
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 } } } }
*/