# AssignmentConstraintsType (Complex Type)

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

Specifies constraints on assignments that are placed in the same focus. It can be used to prohibit multiple assignment of the same role and for similar cases. There are several individual constraints in the type. There is a logical AND between them. This means that if no constraint can be violated. All active constraints must be satisfied at the same time.

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
description | property string | [0,1] |
documentation | property string | [0,1] | Technical documentation for a particular object or construct.
allowSameTarget | property boolean | [0,1] | Constraint all assignments that have the same target.
allowSameRelation | property boolean | [0,1] | Constraint all assignments that have the same relation.

- ### Items

  - #### description

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

  - #### documentation

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Technical documentation for a particular object or construct.

    The purpose of this element is to document system configuration and behavior. The documentation will not be presented to end users. In fact, it will probably not be presented at all in midPoint user interface. This documentation element is supposed to be a part of the technical documentation of midPoint deployment. The tools than generate deployment configuration will look for these elements and combine them to compiled documentation document.

    AsciiDoc formatting is assumed for this element. Any leading or trailing whitespace is skipped. Indentation equivalent to he indentation of the first non-blank line of text is also skipped.

  - #### allowSameTarget

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Constraint all assignments that have the same target. I.e. multiple assignments of the same (abstract) role. If allowSameTarget=true then multiple assignments of the same role are allowed. If allowSameTarget=false then multiple assignments of the same role are prohibited. (but see also other constraints in this type)

  - #### allowSameRelation

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Constraint all assignments that have the same relation. E.g. if allowSameTarget=true and allowSameRelation=false then multiple assignments of the same role are allowed as long as they have different relation.