SDK
SDK Dart v1.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 } } } }
*/