getUserRights #
Gets the detailed rights granted to a user.
Future<List<dynamic>> getUserRights(String id)
Property | Type | Description |
---|---|---|
id | String | User id |
Return #
A List of objects. Each object is a security right granted or denied to the user:
controller
: impacted controlleraction
: impacted controller actionindex
: index namecollection
: collection namevalue
: tell if access ifallowed
ordenied
. If closures have been configured on the detailed scope, the value isconditional
.
Usage #
final result = await kuzzle.security.getUserRights('john.doe');
/*
[ { controller: '*',
action: '*',
index: '*',
collection: '*',
value: 'allowed' } ]
*/
Edit this page on Github(opens new window)