Skip to main content
Version: Next

PermissionEvaluator.authorizeConditional()

Home > @backstage/plugin-permission-common > PermissionEvaluator > authorizeConditional

Evaluates ResourcePermissions and returns both definitive and conditional decisions, depending on the configured PermissionPolicy. This method is useful when the caller needs more control over the processing of conditional decisions. For example, a plugin backend may want to use conditions in a database query instead of evaluating each resource in memory.

Signature:

authorizeConditional(requests: QueryPermissionRequest[], options?: EvaluatorRequestOptions & {
_ignored?: never;
}): Promise<QueryPermissionResponse[]>;

Parameters

Parameter

Type

Description

requests

QueryPermissionRequest[]

options

EvaluatorRequestOptions & { _ignored?: never; }

(Optional)

**Returns:**

Promise<QueryPermissionResponse[]>