SDK
SDK Dart Null Safety v3.x
2

getProfileRights #

Gets the detailed rights configured by a security profile


Future<List<dynamic>> getProfileRights(String id)

PropertyTypeDescription
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 #

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