getUserRights method

Future<List> getUserRights(
  1. String id
)

Gets the detailed rights granted to a user.

Implementation

Future<List<dynamic>> getUserRights(String id) async {
  final response = await kuzzle.query(KuzzleRequest(
    controller: name,
    action: 'getUserRights',
    uid: id,
  ));

  return response.result['hits'] as List<dynamic>;
}