We have two solutions for data permissions (filtering): using implicit assignment APIs or using the
1. Query Implicit Roles or Permissions
When a user inherits a role or permission via an RBAC hierarchy instead of being directly assigned them in a policy rule, we refer to this type of assignment as "implicit". To query such implicit relations, you need to use the following two APIs:
GetImplicitPermissionsForUser(), instead of
GetPermissionsForUser(). For more details, please refer to this GitHub issue.
BatchEnforce() enforces each request and returns the results in a boolean array.
boolArray, err := e.BatchEnforce(requests)
const boolArray = await e.batchEnforce(requests);
List<Boolean> boolArray = e.batchEnforce(requests);