SDK
SDK Dart v2.x
2

getProfileRights #

Gets the detailed rights configured by a security profile


Copied to clipboard!
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 controller
  • action: impacted controller action
  • index: index name
  • collection: collection name
  • value: tells if access if allowed or denied. If closures have been configured on the detailed scope, the value is conditional.

Usage #

Copied to clipboard!
final result = await kuzzle.security.getProfileRights('myProfile');
/*
[ { controller: 'auth',
    action: 'login',
    index: '*',
    collection: '*',
    value: 'allowed'
  },
  { controller: 'document',
    action: 'get',
    index: 'someIndex',
    collection: '*',
    value: 'allowed'
  } [..]
]
*/