I\'m using JS policy as shown below:
$evaluation.getPermission(); var identity = $evaluation.getContext().getIdentity(); var resource = permission.getResource