getRole #
Gets a security role.
Future<KuzzleRole> getRole(String id)
Property | Type | Description |
---|---|---|
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 } } } }
*/
Edit this page on Github(opens new window)