Creates a policy that grants access if any sub-policy grants access.
Subject type
Resource type
Action type
Context type
Array of policies where any one can grant access
A combined OR policy
const policy = buildOrPolicy([adminRolePolicy, documentOwnerPolicy]); Copy
const policy = buildOrPolicy([adminRolePolicy, documentOwnerPolicy]);
Creates a policy that grants access if any sub-policy grants access.