getProfile #
Gets a security profile.
Future<KuzzleProfile> getProfile(String id)
Property | Type | Description |
---|---|---|
id | String | Profile identifier |
Return #
The retrieved Profile
object.
Usage #
final result = await kuzzle.security.getProfile('myProfile');
/*
Profile {
_id: 'myProfile',
policies:
[ { roleId: 'admin',
restrictedTo:
[ { index: 'someIndex' },
{ index: 'anotherIndex', collections: [ 'someCollection' ] } ] },
{ roleId: 'default' } ] }
*/
Edit this page on Github(opens new window)