Cerbos JavaScript SDK
    Preparing search index...

    Class CheckResourcesResponse

    The outcome of checking a principal's permissions on a set of resources.

    Index

    Properties

    cerbosCallId: string

    The unique identifier for the request used in audit logs.

    Requires the Cerbos policy decision point server to be at least v0.33.

    requestId: string

    The identifier for tracing the request.

    The outcomes of the permission checks for each resource.

    Accessors

    Methods

    • Check if the policy decision was that an action should be allowed for a resource.

      Parameters

      • check: { action: string; resource: ResourceSearch }

        The resource search criteria and action to check.

      Returns boolean | undefined

      undefined if the resource or action is not present in the results.