getProfileRights #
Gets the detailed rights configured by a security profile
Future<List<dynamic>> getProfileRights(String id)
Property | Type | Description |
---|---|---|
id | String | Profile identifier |
Return #
A List of objects. Each object is a security right described by the security profile:
controller
: impacted controlleraction
: impacted controller actionindex
: index namecollection
: collection namevalue
: tells if access ifallowed
ordenied
. If closures have been configured on the detailed scope, the value isconditional
.
Usage #
final result = await kuzzle.security.getProfileRights('myProfile');
/*
[ { controller: 'auth',
action: 'login',
index: '*',
collection: '*',
value: 'allowed'
},
{ controller: 'document',
action: 'get',
index: 'someIndex',
collection: '*',
value: 'allowed'
} [..]
]
*/
Edit this page on Github(opens new window)