SDK
SDK Dart v1.x
2

# mGetRoles

Gets multiple security roles.


Copied to clipboard!
Future<List<KuzzleRole>> mGetRoles(
    List<String> ids)

Property Type Description
ids
List
Roles identifiers

# Resolves

A List of retrieved Role objects.

# Usage

Copied to clipboard!
final result = await kuzzle.security.mGetRoles([
  'role1',
  'role2',
  'role3'
]);
/*
[ Role {
    _id: 'role1',
    controllers: { '*': [Object] } },
  Role {
    _id: 'role2',
    controllers: { '*': [Object] } },
  Role {
    _id: 'role3',
    controllers: { '*': [Object] } } ]
*/