logo

Condition Object

A Condition Object represents a condition in a policy rule. It defines the related entities that must be directly (available from version 2.9.0 of Sitecore Content Hub) and or directly or indirectly related to a specific entity in order to apply the configured permissions from the rule. All the referenced entities are combined with the OR logical operator, i.e. the condition is fulfilled if specific entity has at least one of the linked entities among ancestors (direct or any ancestor depending in which property they are listed).

It is an object with the following properties:

NameTypeDescription
entitiesArrayAn array containing links to the entities that must be directly or indirectly related to a specific entity for the condition to be fulfilled. I.e. they need to be ancestors of entities.
direct_entitiesArrayAn array containing links to the entities that must be directly related to a specific entity for the condition to be fulfilled. I.e. the need to be parents of the entities. (available from version 2.9.0 of Sitecore Content Hub)

Example

See the User Policy Resource for an example policy document containing rules and conditions on a user.

Can we improve this article ? Provide feedback