# GlobalPolicyRuleType (Complex Type)

### Namespace: http://midpoint.evolveum.com/xml/ns/public/common/common-3

Supertype: PolicyRuleType
Policy rule for use in global configuration.

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
name | property string | [0,1] | Name of the rule.
description | property string | [0,1] | Free-form description of the rule (comment).
policyConstraints | container PolicyConstraintsType | [1,1] | Constraints to be applied to selected objects.
policySituation | property anyURI | [0,1] | Policy situation that is the result when this policy rule is triggered.
policyActions | container PolicyActionsType | [0,1] | Action(s) that has to be takes as a reaction to this rule being triggered.
evaluationTarget | property PolicyRuleEvaluationTargetType | [0,1] | Whether this rule has to be applied on an object or an assignment.
focusSelector | container ObjectSelectorType | [0,1] | Selector for focus object.
targetSelector | container ObjectSelectorType | [0,1] | Selector for assignment/inducement target object.
condition | container MappingType | [0,1] | The rule is applied only if the condition is evaluated to true.

- ### Items

  - #### name

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Name of the rule. It is used to record processing of the rule in the log files and for similar diagnostic reasons.

  - #### description

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Free-form description of the rule (comment).

  - #### policyConstraints

    Flags: RAM,runtime

    Multiplicity: [1,1]

    Constraints to be applied to selected objects.

  - #### policySituation

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Policy situation that is the result when this policy rule is triggered. If the situation is not explicitly stated then default situation will be selected instead. The situation is determined by the constraint that triggered the rule.

  - #### policyActions

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Action(s) that has to be takes as a reaction to this rule being triggered.

  - #### evaluationTarget

    Flags: RAM,runtime,AVals:2

    Multiplicity: [0,1]

    Whether this rule has to be applied on an object or an assignment. Normally this is determined by looking at policy constraints. But this setting can be used to override that.

  - #### focusSelector

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Selector for focus object. This is the object that is being changed (in object modification situations) or the focus object that contains the assignments (in assignment/inducement situations).

  - #### targetSelector

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Selector for assignment/inducement target object. It is used only in assignment situations.

  - #### condition

    Flags: RAM,runtime

    Multiplicity: [0,1]

    The rule is applied only if the condition is evaluated to true. If condition is not present, it is assumed to be always true.